src/main/java/de/unixwork/uwproj/OptionDefault.java

changeset 40
b42bfc9e9983
parent 0
38775db5fdf5
child 41
75ee588d5d9e
--- a/src/main/java/de/unixwork/uwproj/OptionDefault.java	Wed Sep 06 21:08:04 2023 +0200
+++ b/src/main/java/de/unixwork/uwproj/OptionDefault.java	Wed Sep 06 22:55:42 2023 +0200
@@ -1,23 +1,14 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
 package de.unixwork.uwproj;
 
-/**
- *
- * @author olaf
- */
 public class OptionDefault {
-    private Option option;
+    private final Option option;
     private String value;
     private String platform;
 
     public OptionDefault(Option opt) {
         option = opt;
     }
-    
+
     public String getValueName() {
         return value;
     }
@@ -33,14 +24,14 @@
     public void setPlatform(String platform) {
         this.platform = platform;
     }
-    
+
     public String getFunc() {
         return option.getValueFunc(value);
     }
-    
+
     public OptionValue getValue() {
-        for(OptionValue val : option.getValues()) {
-            if(val.getValue().equals(value)) {
+        for (OptionValue val : option.getValues()) {
+            if (val.getValue().equals(value)) {
                 return val;
             }
         }

mercurial