Add odlparent relativepath relative to autorelease
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / match / OxmMaskDeserializer.java
index 728d42fa7cc86474e664cf2b01c07c97eeffd164..ff8b7ff08280a7dc1fe984f27b8ac63a1726a547 100644 (file)
@@ -1,40 +1,40 @@
-/*\r
- * Copyright (c) 2013 Pantheon Technologies s.r.o. and others.  All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.openflowjava.protocol.impl.deserialization.match;\r
-\r
-import io.netty.buffer.ByteBuf;\r
-\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.MaskMatchEntry;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.MaskMatchEntryBuilder;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev130731.oxm.fields.grouping.MatchEntriesBuilder;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public final class OxmMaskDeserializer {\r
-\r
-    private OxmMaskDeserializer() {\r
-        throw new UnsupportedOperationException("Utility class shouldn't be instantiated");\r
-    }\r
-\r
-    /**\r
-     * Appends mask to match entry (match entry builder)\r
-     * @param builder builder which the mask will append to\r
-     * @param input input ByteBuf\r
-     * @param matchEntryLength mask length\r
-     */\r
-    public static void addMaskAugmentation(MatchEntriesBuilder builder, ByteBuf input,\r
-            int matchEntryLength) {\r
-        MaskMatchEntryBuilder maskBuilder = new MaskMatchEntryBuilder();\r
-        byte[] mask = new byte[matchEntryLength];\r
-        input.readBytes(mask);\r
-        maskBuilder.setMask(mask);\r
-        builder.addAugmentation(MaskMatchEntry.class, maskBuilder.build());\r
-    }\r
-}\r
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
+
+import io.netty.buffer.ByteBuf;
+
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.MaskMatchEntry;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.MaskMatchEntryBuilder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev130731.oxm.fields.grouping.MatchEntriesBuilder;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public final class OxmMaskDeserializer {
+
+    private OxmMaskDeserializer() {
+        throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
+    }
+
+    /**
+     * Appends mask to match entry (match entry builder)
+     * @param builder builder which the mask will append to
+     * @param input input ByteBuf
+     * @param matchEntryLength mask length
+     */
+    public static void addMaskAugmentation(MatchEntriesBuilder builder, ByteBuf input,
+            int matchEntryLength) {
+        MaskMatchEntryBuilder maskBuilder = new MaskMatchEntryBuilder();
+        byte[] mask = new byte[matchEntryLength];
+        input.readBytes(mask);
+        maskBuilder.setMask(mask);
+        builder.addAugmentation(MaskMatchEntry.class, maskBuilder.build());
+    }
+}