You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2012/12/04 23:30:57 UTC
[23/47] ISIS-188: normalizing file endings throughout
http://git-wip-us.apache.org/repos/asf/isis/blob/211aee9b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataInputExtended.java
----------------------------------------------------------------------
diff --git a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataInputExtended.java b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataInputExtended.java
index bfaf129..a682627 100644
--- a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataInputExtended.java
+++ b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataInputExtended.java
@@ -1,116 +1,116 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.apache.isis.core.commons.encoding;
-
-import java.io.IOException;
-import java.util.Arrays;
-
-import org.apache.log4j.Logger;
-
-public class DebugDataInputExtended extends DataInputExtendedDecorator {
-
- private static final Logger LOG = Logger.getLogger(DebugDataInputExtended.class);
-
- public DebugDataInputExtended(final DataInputExtended input) {
- super(input);
- }
-
- @Override
- public boolean readBoolean() throws IOException {
- final boolean b = super.readBoolean();
- if (LOG.isDebugEnabled()) {
- LOG.debug("boolean: " + b);
- }
- return b;
- }
-
- @Override
- public byte readByte() throws IOException {
- final byte b = super.readByte();
- if (LOG.isDebugEnabled()) {
- LOG.debug("byte: " + b);
- }
- return b;
- }
-
- @Override
- public byte[] readBytes() throws IOException {
- final byte[] bs = super.readBytes();
- if (LOG.isDebugEnabled()) {
- LOG.debug("bytes: " + new String(bs));
- }
- return bs;
- }
-
- @Override
- public int readInt() throws IOException {
- final int i = super.readInt();
- if (LOG.isDebugEnabled()) {
- LOG.debug("int: " + i);
- }
- return i;
- }
-
- @Override
- public long readLong() throws IOException {
- final long l = super.readLong();
- if (LOG.isDebugEnabled()) {
- LOG.debug("long: " + l);
- }
- return l;
- }
-
- @Override
- public String readUTF() throws IOException {
- final String string = super.readUTF();
- if (LOG.isDebugEnabled()) {
- LOG.debug("string: " + string);
- }
- return string;
- }
-
- @Override
- public String[] readUTFs() throws IOException {
- final String[] strings = super.readUTFs();
- if (LOG.isDebugEnabled()) {
- LOG.debug("list: " + Arrays.toString(strings));
- }
- return strings;
- }
-
- @Override
- public <T> T readEncodable(final Class<T> encodableType) throws IOException {
- final T object = super.readEncodable(encodableType);
- if (LOG.isDebugEnabled()) {
- LOG.debug(">>> object");
- }
- return object;
- }
-
- @Override
- public <T> T[] readEncodables(final Class<T> encodableType) throws IOException {
- final T[] objects = super.readEncodables(encodableType);
- if (LOG.isDebugEnabled()) {
- LOG.debug(">>> objects x" + objects.length);
- }
- return objects;
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.isis.core.commons.encoding;
+
+import java.io.IOException;
+import java.util.Arrays;
+
+import org.apache.log4j.Logger;
+
+public class DebugDataInputExtended extends DataInputExtendedDecorator {
+
+ private static final Logger LOG = Logger.getLogger(DebugDataInputExtended.class);
+
+ public DebugDataInputExtended(final DataInputExtended input) {
+ super(input);
+ }
+
+ @Override
+ public boolean readBoolean() throws IOException {
+ final boolean b = super.readBoolean();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("boolean: " + b);
+ }
+ return b;
+ }
+
+ @Override
+ public byte readByte() throws IOException {
+ final byte b = super.readByte();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("byte: " + b);
+ }
+ return b;
+ }
+
+ @Override
+ public byte[] readBytes() throws IOException {
+ final byte[] bs = super.readBytes();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("bytes: " + new String(bs));
+ }
+ return bs;
+ }
+
+ @Override
+ public int readInt() throws IOException {
+ final int i = super.readInt();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("int: " + i);
+ }
+ return i;
+ }
+
+ @Override
+ public long readLong() throws IOException {
+ final long l = super.readLong();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("long: " + l);
+ }
+ return l;
+ }
+
+ @Override
+ public String readUTF() throws IOException {
+ final String string = super.readUTF();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("string: " + string);
+ }
+ return string;
+ }
+
+ @Override
+ public String[] readUTFs() throws IOException {
+ final String[] strings = super.readUTFs();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("list: " + Arrays.toString(strings));
+ }
+ return strings;
+ }
+
+ @Override
+ public <T> T readEncodable(final Class<T> encodableType) throws IOException {
+ final T object = super.readEncodable(encodableType);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(">>> object");
+ }
+ return object;
+ }
+
+ @Override
+ public <T> T[] readEncodables(final Class<T> encodableType) throws IOException {
+ final T[] objects = super.readEncodables(encodableType);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(">>> objects x" + objects.length);
+ }
+ return objects;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/isis/blob/211aee9b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataOutputExtended.java
----------------------------------------------------------------------
diff --git a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataOutputExtended.java b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataOutputExtended.java
index 6a16986..bbc37b0 100644
--- a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataOutputExtended.java
+++ b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/DebugDataOutputExtended.java
@@ -1,113 +1,113 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.apache.isis.core.commons.encoding;
-
-import java.io.IOException;
-
-import org.apache.log4j.Logger;
-
-public class DebugDataOutputExtended extends DataOutputExtendedDecorator {
-
- private static final Logger LOG = Logger.getLogger(DebugDataOutputExtended.class);
-
- public DebugDataOutputExtended(final DataOutputExtended underlying) {
- super(underlying);
- }
-
- @Override
- public void writeBoolean(final boolean flag) throws IOException {
- if (LOG.isDebugEnabled()) {
- LOG.debug("boolean: " + flag);
- }
- super.writeBoolean(flag);
- }
-
- @Override
- public void writeBytes(final byte[] value) throws IOException {
- if (LOG.isDebugEnabled()) {
- LOG.debug("bytes: (" + value.length + ") " + new String(value));
- }
- super.writeBytes(value);
- }
-
- @Override
- public void writeByte(final int value) throws IOException {
- if (LOG.isDebugEnabled()) {
- LOG.debug("byte: " + value);
- }
- super.writeByte(value);
- }
-
- @Override
- public void writeInt(final int value) throws IOException {
- if (LOG.isDebugEnabled()) {
- LOG.debug("int: " + value);
- }
- super.writeInt(value);
- }
-
- @Override
- public void writeLong(final long value) throws IOException {
- if (LOG.isDebugEnabled()) {
- LOG.debug("long: " + value);
- }
- super.writeLong(value);
- }
-
- @Override
- public void writeEncodable(final Object object) throws IOException {
- if (LOG.isDebugEnabled()) {
- LOG.debug(">>> object: (" + object + ")");
- }
- super.writeEncodable(object);
- }
-
- @Override
- public void writeEncodables(final Object[] objects) throws IOException {
- if (LOG.isDebugEnabled()) {
- LOG.debug(">>> objects x" + objects.length);
- }
- super.writeEncodables(objects);
- }
-
- @Override
- public void writeUTF(final String str) throws IOException {
- if (LOG.isDebugEnabled()) {
- LOG.debug("string: " + str);
- }
- super.writeUTF(str);
- }
-
- @Override
- public void writeUTFs(final String[] strings) throws IOException {
- if (LOG.isDebugEnabled()) {
- final StringBuffer l = new StringBuffer();
- for (int i = 0; i < strings.length; i++) {
- if (i > 0) {
- l.append(", ");
- }
- l.append(strings[i]);
- }
- LOG.debug("list: " + l);
- }
- super.writeUTFs(strings);
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.isis.core.commons.encoding;
+
+import java.io.IOException;
+
+import org.apache.log4j.Logger;
+
+public class DebugDataOutputExtended extends DataOutputExtendedDecorator {
+
+ private static final Logger LOG = Logger.getLogger(DebugDataOutputExtended.class);
+
+ public DebugDataOutputExtended(final DataOutputExtended underlying) {
+ super(underlying);
+ }
+
+ @Override
+ public void writeBoolean(final boolean flag) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("boolean: " + flag);
+ }
+ super.writeBoolean(flag);
+ }
+
+ @Override
+ public void writeBytes(final byte[] value) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("bytes: (" + value.length + ") " + new String(value));
+ }
+ super.writeBytes(value);
+ }
+
+ @Override
+ public void writeByte(final int value) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("byte: " + value);
+ }
+ super.writeByte(value);
+ }
+
+ @Override
+ public void writeInt(final int value) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("int: " + value);
+ }
+ super.writeInt(value);
+ }
+
+ @Override
+ public void writeLong(final long value) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("long: " + value);
+ }
+ super.writeLong(value);
+ }
+
+ @Override
+ public void writeEncodable(final Object object) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(">>> object: (" + object + ")");
+ }
+ super.writeEncodable(object);
+ }
+
+ @Override
+ public void writeEncodables(final Object[] objects) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(">>> objects x" + objects.length);
+ }
+ super.writeEncodables(objects);
+ }
+
+ @Override
+ public void writeUTF(final String str) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("string: " + str);
+ }
+ super.writeUTF(str);
+ }
+
+ @Override
+ public void writeUTFs(final String[] strings) throws IOException {
+ if (LOG.isDebugEnabled()) {
+ final StringBuffer l = new StringBuffer();
+ for (int i = 0; i < strings.length; i++) {
+ if (i > 0) {
+ l.append(", ");
+ }
+ l.append(strings[i]);
+ }
+ LOG.debug("list: " + l);
+ }
+ super.writeUTFs(strings);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/isis/blob/211aee9b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/Encodable.java
----------------------------------------------------------------------
diff --git a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/Encodable.java b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/Encodable.java
index 4390fe1..03d6bf6 100644
--- a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/Encodable.java
+++ b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/Encodable.java
@@ -1,40 +1,40 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.apache.isis.core.commons.encoding;
-
-import java.io.IOException;
-
-/**
- * This interface indicates that an object can be encoded into into a byte array
- * so it can be streamed.
- *
- * <p>
- * By implementing this interface you are agreeing to provide a constructor with
- * a single argument of type {@link DataInputExtended}, which create an instance
- * from the stream.
- */
-public interface Encodable {
-
- /**
- * Returns the domain object's value as an encoded byte array via the
- * encoder.
- */
- void encode(DataOutputExtended outputStream) throws IOException;
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.isis.core.commons.encoding;
+
+import java.io.IOException;
+
+/**
+ * This interface indicates that an object can be encoded into into a byte array
+ * so it can be streamed.
+ *
+ * <p>
+ * By implementing this interface you are agreeing to provide a constructor with
+ * a single argument of type {@link DataInputExtended}, which create an instance
+ * from the stream.
+ */
+public interface Encodable {
+
+ /**
+ * Returns the domain object's value as an encoded byte array via the
+ * encoder.
+ */
+ void encode(DataOutputExtended outputStream) throws IOException;
+}
http://git-wip-us.apache.org/repos/asf/isis/blob/211aee9b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/EncodingConstants.java
----------------------------------------------------------------------
diff --git a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/EncodingConstants.java b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/EncodingConstants.java
index f95c3c5..c6b87db 100644
--- a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/EncodingConstants.java
+++ b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/EncodingConstants.java
@@ -1,29 +1,29 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.apache.isis.core.commons.encoding;
-
-public class EncodingConstants {
-
- static final String ENCODED_NULL_ARRAY = "$$.$null-array$.$$";
- static final String ENCODED_BOOLEAN_FALSE = "$$.$false$.$$";
- static final String ENCODED_BOOLEAN_TRUE = "$$.$true$.$$";
- static final String ENCODED_NULL_OBJECT = "$$.$null$.$$";
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.isis.core.commons.encoding;
+
+public class EncodingConstants {
+
+ static final String ENCODED_NULL_ARRAY = "$$.$null-array$.$$";
+ static final String ENCODED_BOOLEAN_FALSE = "$$.$false$.$$";
+ static final String ENCODED_BOOLEAN_TRUE = "$$.$true$.$$";
+ static final String ENCODED_NULL_OBJECT = "$$.$null$.$$";
+
+}
http://git-wip-us.apache.org/repos/asf/isis/blob/211aee9b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDecodeException.java
----------------------------------------------------------------------
diff --git a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDecodeException.java b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDecodeException.java
index 22ff10a..d2d3315 100644
--- a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDecodeException.java
+++ b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDecodeException.java
@@ -1,42 +1,42 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.apache.isis.core.commons.encoding;
-
-import java.io.IOException;
-
-public class FailedToDecodeException extends IOException {
-
- private static final long serialVersionUID = 1L;
-
- private final Throwable cause;
-
- public FailedToDecodeException(final Throwable cause) {
- this.cause = cause;
- }
-
- @Override
- public Throwable getCause() {
- return cause;
- }
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.isis.core.commons.encoding;
+
+import java.io.IOException;
+
+public class FailedToDecodeException extends IOException {
+
+ private static final long serialVersionUID = 1L;
+
+ private final Throwable cause;
+
+ public FailedToDecodeException(final Throwable cause) {
+ this.cause = cause;
+ }
+
+ @Override
+ public Throwable getCause() {
+ return cause;
+ }
+
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/211aee9b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDeserializeException.java
----------------------------------------------------------------------
diff --git a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDeserializeException.java b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDeserializeException.java
index d126dbd..6419897 100644
--- a/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDeserializeException.java
+++ b/framework/core/commons/src/main/java/org/apache/isis/core/commons/encoding/FailedToDeserializeException.java
@@ -1,42 +1,42 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.apache.isis.core.commons.encoding;
-
-import java.io.IOException;
-
-public class FailedToDeserializeException extends IOException {
-
- private static final long serialVersionUID = 1L;
-
- private final Throwable cause;
-
- public FailedToDeserializeException(final ClassNotFoundException cause) {
- this.cause = cause;
- }
-
- @Override
- public Throwable getCause() {
- return cause;
- }
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.isis.core.commons.encoding;
+
+import java.io.IOException;
+
+public class FailedToDeserializeException extends IOException {
+
+ private static final long serialVersionUID = 1L;
+
+ private final Throwable cause;
+
+ public FailedToDeserializeException(final ClassNotFoundException cause) {
+ this.cause = cause;
+ }
+
+ @Override
+ public Throwable getCause() {
+ return cause;
+ }
+
}
\ No newline at end of file