dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #42196
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21555: UserSettingKey, minor
------------------------------------------------------------
revno: 21555
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-12-30 15:43:57 +0100
message:
UserSettingKey, minor
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java 2015-12-08 19:36:21 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingKey.java 2015-12-30 14:43:57 +0000
@@ -32,8 +32,6 @@
import java.util.Locale;
import java.util.Optional;
-import org.hisp.dhis.setting.SettingKey;
-
/**
* @author Lars Helge Overland
*/
@@ -86,9 +84,9 @@
// Logic
// -------------------------------------------------------------------------
- public static Optional<SettingKey> getByName( String name )
+ public static Optional<UserSettingKey> getByName( String name )
{
- for ( SettingKey setting : SettingKey.values() )
+ for ( UserSettingKey setting : UserSettingKey.values() )
{
if ( setting.getName().equals( name ) )
{
@@ -101,7 +99,7 @@
public static Serializable getAsRealClass( String name, String value )
{
- Optional<SettingKey> setting = getByName( name );
+ Optional<UserSettingKey> setting = getByName( name );
if ( setting.isPresent() )
{