{{theTime}}

Search This Blog

Total Pageviews

ImmutableList Example

private ImmutableList<String> getServerProps(){
      ImmutableList.Builder<String> serverProps = ImmutableList.builder();
      serverProps.add(String.format("Azure", "Yes"));
      serverProps.add(String.format("AWS", "Yes"));
      serverProps.add("DisasterRecovery", "Yes");
   
return serverProps ;
}

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {
            System.out.println("Shutdown started");
             //  Close all the resource locks
            System.out.println("Shutdown successful");
        }));

gradlew : The term 'gradlew' is not recognized as the name of a cmdlet, function, script file , or operable program

The command gradlew was not found, but does exist in the current location.  Windows PowerShell does not load commands from the current location by default.  Try '.\gradlew'

Type Matching Code Completion in IntelliJ

Invoke (Ctrl + Shift + Space) twice when collection type is expected will search for arrays with the same component type.

java.lang.IllegalArgumentException: Unsupported class file major version 60

- Check the stack trace and version of Java.
- Update the correct Java Version to resolve the Exception.

Deprecated Gradle features were used in this build

Use '--warning-mode all' to show the individual deprecation warnings.

How to override DNS for a domain on a specific machine?

Find the hosts file and add the Ipaddress and the domain.  The hosts file is located in c:\windows\system32\drivers\etc in windows.

ImmutableList Example

private ImmutableList<String> getServerProps(){       ImmutableList.Builder<String> serverProps = ImmutableList.builder();      ...