Skip to content
Snippets Groups Projects
Unverified Commit 16165d0c authored by Luc Everse's avatar Luc Everse :passport_control:
Browse files

Make vars final where possible

parent d16e2386
Branches
Tags
3 merge requests!148Release 2.3.0,!132Authentication framework refactor,!100Add SAML authentication
Pipeline #218135 passed
......@@ -108,7 +108,7 @@ public class GlobalSettings extends HashMap<Object, Object> {
* @throws ClassCastException if the value's type does not match the requested type
*/
public <T> T get(final String key, final Class<T> type) {
var value = super.get(key);
final var value = super.get(key);
return type.cast(this.typeConverters.getOrDefault(type, Function.identity()).apply(value));
}
......@@ -124,7 +124,7 @@ public class GlobalSettings extends HashMap<Object, Object> {
* @throws ClassCastException if the value's type does not match the requested type
*/
public <T> T get(final SettingKey key, final Class<T> type) {
var value = super.get(key);
final var value = super.get(key);
return type.cast(this.typeConverters.getOrDefault(type, Function.identity()).apply(value));
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment