aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/SystemProperties.java')
-rw-r--r--jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/SystemProperties.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/SystemProperties.java b/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/SystemProperties.java
index 590a32f..19b716d 100644
--- a/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/SystemProperties.java
+++ b/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/SystemProperties.java
@@ -34,12 +34,12 @@ import java.util.Map;
*/
public class SystemProperties
{
- Map properties;
- boolean force;
+ private final Map<String, SystemProperty> properties;
+ private boolean force;
public SystemProperties()
{
- properties = new HashMap();
+ properties = new HashMap<>();
}
public void setForce (boolean force)
@@ -64,7 +64,7 @@ public class SystemProperties
public SystemProperty getSystemProperty(String name)
{
- return (SystemProperty)properties.get(name);
+ return properties.get(name);
}
public boolean containsSystemProperty(String name)
@@ -72,8 +72,8 @@ public class SystemProperties
return properties.containsKey(name);
}
- public List getSystemProperties ()
+ public List<SystemProperty> getSystemProperties ()
{
- return new ArrayList(properties.values());
+ return new ArrayList<>(properties.values());
}
}