Monica
- Total activity 17
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 0
Articles
Recent activity by Monica-
How to Create Custom Postfix Templates for Primitive Types and Arrays in IntelliJ IDEA
Description Custom postfix templates allow you to transform expressions on the fly (e.g., turning myVar.toHex into Utils.toHex(myVar)). However, configuring these for primitive types (int, double, ...
-
How to identify from where the Indexing process is pulling the log4j 1.2.x to Maven Repository
Background/Situation When opening an existing project that requires indexing, IntelliJ IDEA starts pulling log4j 1.2.12 into the .m2/repository. It looks like this dependency is not declared anywhe...
-
How to suppress "Deprecated API usage" inspection warnings for a specific class?
Question How to suppress "Deprecated API usage" warnings for a specific class? Answer To suppress warnings for deprecated classes in the specific class only, not globally, ensure the correct warnin...
-
Lambda compiler error: Variable should be effectively final
Problem When using a lambda expression in Java, a compilation error "Variable should be effectively final" is encountered. In the editor, a red error '!' counter is shown at the top, and the toolti...
-
How to navigate internal custom events easily and select the best approach
Background/Situation For applications that work with internal events, it may be necessary to navigate from the point where an event is sent to the method that handles it. However, this could be cha...
-
How to add a Java project to GitLab from IntelliJ IDEA
Create a project or choose any existing project. Go to GitLab and create a new space for the project. Copy the URL of the repository. Go back to IntelliJ IDEA. Right-click over the projec...
-
How to define a JVM system property name using a placeholder from Run/Debug/Configuration with JUnit
Background/Situation A user running a test with JUnit is trying to define a JVM system property in IntelliJ IDEA using a placeholder for the property name. Question How can I add -D${keyName} to te...
-
How to install two different versions of IntelliJ IDEA (Ultimate Ed.) using Homebrew to custom locations/file names?
Background/Situation [Optional] A user wants to install two different versions of IntelliJ IDEA (Ultimate Edition) using Homebrew on macOS. The latest version is usually installed at /Applications/...
-
How to Script Installation and Activation of Custom Inspection Profiles and CodeStyles
How to Script Installation and Activation of Custom Inspection Profiles Background/Situation In team environments, the shared inspection profile (Project_Default.xml) is often committed to version ...
-
Junie does not respect Maven settings and switches JDK when running Maven commands
Problem Junie does not respect Maven settings and switches JDK when running Maven commands, despite the SDK is set to a certain version (e.g. 25). Cause The root of this is that Junie runs Maven in...