
eu.cedarsoft.devtools.SubversionMessageHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of subversion Show documentation
Show all versions of subversion Show documentation
Subversion modules for DevTools
The newest version!
package eu.cedarsoft.devtools;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;
import org.jetbrains.annotations.NonNls;
import java.text.MessageFormat;
import java.util.ResourceBundle;
/**
*/
public class SubversionMessageHandler {
@NonNls
@NotNull
private static final String RESOURCE_BUNDLE_NAME = "subversion";
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle( RESOURCE_BUNDLE_NAME );
private SubversionMessageHandler() {
}
@NotNull
public static String get( @PropertyKey( resourceBundle = RESOURCE_BUNDLE_NAME ) @NotNull String key ) {
return BUNDLE.getString( key );
}
@SuppressWarnings( {"OverloadedVarargsMethod"} )
public static String get( @PropertyKey( resourceBundle = RESOURCE_BUNDLE_NAME ) @NotNull String key, Object... arguments ) {
return MessageFormat.format( BUNDLE.getString( key ), arguments );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy