Behrang

- Total activity 140
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 50
-
-
Behrang created a post, AnsweredJSON Schema false warnings for CloudFormation templates
When I use verbose version of some functions such as Fn::Select, IDEA is giving me a false warning: I noticed IDEA is using this schema definition: https://raw.githubusercontent.com/awslabs/goform... -
Behrang created a post, AnsweredCan IDEA pass dummy arguments to constructor calls?
Assuming that I have this POJO with a full-args constructor: public class Foo { String x; int y; double z;} Is there a shortcut key to generate constructor calls like this: Foo f = new Foo... -
Behrang created a post, AnsweredCode smell candidate?
Today I stumbled upon this code: if (string != null && string.chatAt(0) == 'x') { ...} Which will throw an index out of bound exception when string is empty. The intention was to write this inste... -
Behrang created a post, AnsweredC noob: how to open Postfix in CLion?
Java dev here. How to open Postfix (https://github.com/vdukhovni/postfix) in CLion so that it can resolve all the symbols and can build it without any issues? When I open it in IDEA, it is asking f... -
Behrang created a post, Formatting WITH expressions IN PostgreSQL
Is there an option to make WITH new_comps AS ( INSERT INTO tbl_companies (id, name) SELECT nextval('tbl_companies_id_seq'), 'Company ' || currval('tbl_companies_id_seq') FROM gener... -
Behrang commented, -
-
Behrang created a post, AnsweredJPA (Hibernate) false error for functions such as YEAR and MONTH
This JPA query is valid when using Hibernate as the provider: @Query("SELECT foo FROM Foo foo WHERE YEAR(foo.date) IN ?1") But in a Spring Boot project, IDEA falsely marks it as an error with this ... -
Behrang created a post, AnsweredFalse "Could not autowire" error in IDEA 2019.2 (and IIRC 2019.1 and earlier versions too)
I have reported this in YouTrack too, but thought there might be a workaround available so I am posting here too. I uploaded a sample project (resolution-error.zip) to https://uploads.services.jetb...