, , , , , .jar :
public String getConnectionString() {...
then just extend the class, override the method to return a new line and use your class instead. Obviously, this only works if the superclass is not final, the method is not final, and it is public or protected (if you can use the same package name).
source
share