Clean up some SonarQube warnings (trailing whitespace, etc).
[platform/upstream/iotivity.git] / android / android_api / base / src / main / java / org / iotivity / base / RequestHandlerFlag.java
index 5e1f5ee..b67cee8 100644 (file)
@@ -1,61 +1,61 @@
-/*\r
- * //******************************************************************\r
- * //\r
- * // Copyright 2015 Intel Corporation.\r
- * //\r
- * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
- * //\r
- * // Licensed under the Apache License, Version 2.0 (the "License");\r
- * // you may not use this file except in compliance with the License.\r
- * // You may obtain a copy of the License at\r
- * //\r
- * //      http://www.apache.org/licenses/LICENSE-2.0\r
- * //\r
- * // Unless required by applicable law or agreed to in writing, software\r
- * // distributed under the License is distributed on an "AS IS" BASIS,\r
- * // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * // See the License for the specific language governing permissions and\r
- * // limitations under the License.\r
- * //\r
- * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
- */\r
-\r
-package org.iotivity.base;\r
-\r
-import java.util.EnumSet;\r
-\r
-public enum RequestHandlerFlag {\r
-    INIT(1 << 0),\r
-    REQUEST(1 << 1),\r
-    OBSERVER(1 << 2),;\r
-\r
-    private int value;\r
-\r
-    private RequestHandlerFlag(int value) {\r
-        this.value = value;\r
-    }\r
-\r
-    public int getValue() {\r
-        return this.value;\r
-    }\r
-\r
-    public static EnumSet<RequestHandlerFlag> convertToEnumSet(int value) {\r
-        EnumSet<RequestHandlerFlag> flagSet = null;\r
-\r
-        for (RequestHandlerFlag v : values()) {\r
-            if (0 != (value & v.getValue())) {\r
-                if (flagSet == null) {\r
-                    flagSet = EnumSet.of(v);\r
-                } else {\r
-                    flagSet.add(v);\r
-                }\r
-            }\r
-        }\r
-\r
-        if (null == flagSet || flagSet.isEmpty()) {\r
-            throw new IllegalArgumentException("Unexpected RequestHandlerFlag value");\r
-        }\r
-\r
-        return flagSet;\r
-    }\r
-}\r
+/*
+ * //******************************************************************
+ * //
+ * // Copyright 2015 Intel Corporation.
+ * //
+ * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+ * //
+ * // Licensed under the Apache License, Version 2.0 (the "License");
+ * // you may not use this file except in compliance with the License.
+ * // You may obtain a copy of the License at
+ * //
+ * //      http://www.apache.org/licenses/LICENSE-2.0
+ * //
+ * // Unless required by applicable law or agreed to in writing, software
+ * // distributed under the License is distributed on an "AS IS" BASIS,
+ * // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * // See the License for the specific language governing permissions and
+ * // limitations under the License.
+ * //
+ * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+ */
+
+package org.iotivity.base;
+
+import java.util.EnumSet;
+
+public enum RequestHandlerFlag {
+    INIT(1 << 0),
+    REQUEST(1 << 1),
+    OBSERVER(1 << 2),;
+
+    private int value;
+
+    private RequestHandlerFlag(int value) {
+        this.value = value;
+    }
+
+    public int getValue() {
+        return this.value;
+    }
+
+    public static EnumSet<RequestHandlerFlag> convertToEnumSet(int value) {
+        EnumSet<RequestHandlerFlag> flagSet = null;
+
+        for (RequestHandlerFlag v : values()) {
+            if (0 != (value & v.getValue())) {
+                if (flagSet == null) {
+                    flagSet = EnumSet.of(v);
+                } else {
+                    flagSet.add(v);
+                }
+            }
+        }
+
+        if (null == flagSet || flagSet.isEmpty()) {
+            throw new IllegalArgumentException("Unexpected RequestHandlerFlag value");
+        }
+
+        return flagSet;
+    }
+}