diff options
author | Elliott Hughes <enh@google.com> | 2010-05-13 12:36:25 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-05-13 12:49:12 -0700 |
commit | f33eae7e84eb6d3b0f4e86b59605bb3de73009f3 (patch) | |
tree | f6cb62c04ce2669d2fa4715fbab86d38c8fca06d /support/src/test/java/tests | |
parent | d21d78fd49a2d798218e8c8aefbddb26a0e71bbb (diff) | |
download | libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.zip libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.tar.gz libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.tar.bz2 |
Remove all trailing whitespace from the dalvik team-maintained parts of libcore.
Gentlemen, you may now set your editors to "strip trailing whitespace"...
Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
Diffstat (limited to 'support/src/test/java/tests')
50 files changed, 286 insertions, 286 deletions
diff --git a/support/src/test/java/tests/support/Support_ASimpleInputStream.java b/support/src/test/java/tests/support/Support_ASimpleInputStream.java index 77dfcd2..06c986b 100644 --- a/support/src/test/java/tests/support/Support_ASimpleInputStream.java +++ b/support/src/test/java/tests/support/Support_ASimpleInputStream.java @@ -30,7 +30,7 @@ public class Support_ASimpleInputStream extends InputStream { this(); throwExceptionOnNextUse = throwException; } - + public Support_ASimpleInputStream(String input) { buf = input.getBytes(); pos = 0; diff --git a/support/src/test/java/tests/support/Support_ASimpleOutputStream.java b/support/src/test/java/tests/support/Support_ASimpleOutputStream.java index 3ace4f9..60d85be 100644 --- a/support/src/test/java/tests/support/Support_ASimpleOutputStream.java +++ b/support/src/test/java/tests/support/Support_ASimpleOutputStream.java @@ -43,7 +43,7 @@ public class Support_ASimpleOutputStream extends OutputStream { throw new IOException("Exception thrown for testing purpose."); } } - + @Override public void flush() throws IOException { if (throwExceptionOnNextUse) { @@ -67,7 +67,7 @@ public class Support_ASimpleOutputStream extends OutputStream { // throw new IOException("Exception thrown for testing purposes."); // } // if (offset < 0 || count < 0 || (offset + count) > buffer.length) { -// throw new IndexOutOfBoundsException(); +// throw new IndexOutOfBoundsException(); // } // for (int i = offset; i < offset + count; i++) { // write(buffer[i]); diff --git a/support/src/test/java/tests/support/Support_ASimpleReader.java b/support/src/test/java/tests/support/Support_ASimpleReader.java index a98160c..2bcb2ff 100644 --- a/support/src/test/java/tests/support/Support_ASimpleReader.java +++ b/support/src/test/java/tests/support/Support_ASimpleReader.java @@ -30,7 +30,7 @@ public class Support_ASimpleReader extends Reader { this(); throwExceptionOnNextUse = throwException; } - + public Support_ASimpleReader(String input) { buf = input.toCharArray(); pos = 0; diff --git a/support/src/test/java/tests/support/Support_ASimpleWriter.java b/support/src/test/java/tests/support/Support_ASimpleWriter.java index 17b7647..9f66f44 100644 --- a/support/src/test/java/tests/support/Support_ASimpleWriter.java +++ b/support/src/test/java/tests/support/Support_ASimpleWriter.java @@ -30,7 +30,7 @@ public class Support_ASimpleWriter extends Writer { this(DEFAULT_BUFFER_SIZE); throwExceptionOnNextUse = throwException; } - + public Support_ASimpleWriter(int bufferSize) { buf = new char[bufferSize]; pos = 0; @@ -43,7 +43,7 @@ public class Support_ASimpleWriter extends Writer { throw new IOException("Exception thrown for testing purpose."); } } - + @Override public void flush() throws IOException { if (throwExceptionOnNextUse) { @@ -57,7 +57,7 @@ public class Support_ASimpleWriter extends Writer { throw new IOException("Exception thrown for testing purpose."); } if (offset < 0 || count < 0 || (offset + count) > buf.length) { - throw new IndexOutOfBoundsException(); + throw new IndexOutOfBoundsException(); } try { System.arraycopy(src, offset, buf, pos, count); diff --git a/support/src/test/java/tests/support/Support_BitSet.java b/support/src/test/java/tests/support/Support_BitSet.java index 2adbb9f..eae33bb 100644 --- a/support/src/test/java/tests/support/Support_BitSet.java +++ b/support/src/test/java/tests/support/Support_BitSet.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -26,9 +26,9 @@ public class Support_BitSet { /** * Create a new BitSet with size equal to 64 bits - * + * * @return The number of bits contained in this BitSet. - * + * * @see #clear * @see #set */ @@ -40,7 +40,7 @@ public class Support_BitSet { * Create a new BitSet with size equal to nbits. If nbits is not a multiple * of 64, then create a BitSet with size nbits rounded to the next closest * multiple of 64. - * + * * @exception NegativeArraySizeException * if nbits < 0. * @see #clear @@ -56,10 +56,10 @@ public class Support_BitSet { /** * Clears the bit at index pos. Grows the BitSet if pos > size. - * + * * @param pos * int - * + * * @exception IndexOutOfBoundsException * when pos < 0 * @see #set @@ -78,12 +78,12 @@ public class Support_BitSet { /** * Retrieve the bit at index pos. Grows the BitSet if pos > size. - * + * * @param pos * int * @return A boolean value indicating whether the bit at pos has been set. * Answers false if pos > size(). - * + * * @exception IndexOutOfBoundsException * when pos < 0 * @see #set @@ -102,7 +102,7 @@ public class Support_BitSet { /** * Increase the size of the internal array to accomodate pos bits. The new * array max index will be a multiple of 64 - * + * * @param pos * int The index the new array needs to be able to access */ @@ -116,10 +116,10 @@ public class Support_BitSet { /** * Sets the bit at index pos to 1. Grows the BitSet if pos > size. - * + * * @param pos * int - * + * * @exception IndexOutOfBoundsException * when pos < 0 * @see #clear @@ -137,9 +137,9 @@ public class Support_BitSet { /** * Clears the bit at index pos. - * + * * @return The number of bits contained in this BitSet. - * + * * @see #BitSet * @see #clear * @see #set @@ -151,7 +151,7 @@ public class Support_BitSet { /** * Answers a string containing a concise, human-readable description of the * receiver. - * + * * @return A comma delimited list of the indices of all bits that are set. */ @Override @@ -182,7 +182,7 @@ public class Support_BitSet { /** * Returns the number of bits up to and including the highest bit set. - * + * */ public int length() { int idx = bits.length - 1; diff --git a/support/src/test/java/tests/support/Support_ClassLoader.java b/support/src/test/java/tests/support/Support_ClassLoader.java index 81de979..3ba1d7e 100644 --- a/support/src/test/java/tests/support/Support_ClassLoader.java +++ b/support/src/test/java/tests/support/Support_ClassLoader.java @@ -29,11 +29,11 @@ import dalvik.system.DexClassLoader; public abstract class Support_ClassLoader { public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); - + public static ClassLoader getInstance(URL url, ClassLoader parent) { try { - Support_ClassLoader factory; - + Support_ClassLoader factory; + if ("Dalvik".equals(System.getProperty("java.vm.name"))) { factory = (Support_ClassLoader)Class.forName( "tests.support.Support_ClassLoader$Dalvik").newInstance(); @@ -41,7 +41,7 @@ public abstract class Support_ClassLoader { factory = (Support_ClassLoader)Class.forName( "tests.support.Support_ClassLoader$RefImpl").newInstance(); } - + return factory.getClassLoader(url, parent); } catch (Exception ex) { throw new RuntimeException("Unable to create ClassLoader", ex); @@ -70,7 +70,7 @@ public abstract class Support_ClassLoader { null, parent); } } - + /** * Implementation for the reference implementation. Nothing interesting to * see here. Please get along. diff --git a/support/src/test/java/tests/support/Support_CollectionTest.java b/support/src/test/java/tests/support/Support_CollectionTest.java index 824768a..6ff1868 100644 --- a/support/src/test/java/tests/support/Support_CollectionTest.java +++ b/support/src/test/java/tests/support/Support_CollectionTest.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -26,7 +26,7 @@ import java.util.TreeSet; * @tests java.util.Collection */ @TestTargetClass(java.util.Collection.class) -public class Support_CollectionTest extends junit.framework.TestCase { +public class Support_CollectionTest extends junit.framework.TestCase { Collection<Integer> col; // must contain the Integers 0 to 99 public Support_CollectionTest(String p1) { diff --git a/support/src/test/java/tests/support/Support_Configuration.java b/support/src/test/java/tests/support/Support_Configuration.java index 19af32e..fb5b468 100644 --- a/support/src/test/java/tests/support/Support_Configuration.java +++ b/support/src/test/java/tests/support/Support_Configuration.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -64,7 +64,7 @@ public class Support_Configuration { public static String InetTestAddress = "localhost"; public static String InetTestIP = "127.0.0.1"; - + // BEGIN android-added public static byte[] InetTestAddr = {127, 0, 0, 1}; // END android-added @@ -102,17 +102,17 @@ public class Support_Configuration { // END android-changed public static String testURL = "harmony.apache.org"; - + public static String hTTPURLwExpiration = "http://phpwiki.sourceforge.net/phpwiki-1.2/"; - + public static String hTTPURLwLastModified = "http://www.php.net/manual/en/function.explode.php"; - + public static String hTTPURLyahoo = "http://news.yahoo.com/"; - + public static String hTTPURLgoogle = "http://www.google.com/ie"; - + public static String testContentEncoding = "http://www.amazon.com/"; - + public static int SpecialInetTestAddressNumber = 4; /** diff --git a/support/src/test/java/tests/support/Support_DeleteOnExitTest.java b/support/src/test/java/tests/support/Support_DeleteOnExitTest.java index 0ce7655..c3d3a8b 100644 --- a/support/src/test/java/tests/support/Support_DeleteOnExitTest.java +++ b/support/src/test/java/tests/support/Support_DeleteOnExitTest.java @@ -11,7 +11,7 @@ public class Support_DeleteOnExitTest { public static void main(String[] args) throws Exception { File file1 = new File(args[0]); File file2 = new File(args[1]); - + file1.deleteOnExit(); file2.deleteOnExit(); Runtime.getRuntime().exit(0); diff --git a/support/src/test/java/tests/support/Support_Exec.java b/support/src/test/java/tests/support/Support_Exec.java index 2e709a5..124dcdc 100644 --- a/support/src/test/java/tests/support/Support_Exec.java +++ b/support/src/test/java/tests/support/Support_Exec.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_Field.java b/support/src/test/java/tests/support/Support_Field.java index 07863fe..36ff718 100644 --- a/support/src/test/java/tests/support/Support_Field.java +++ b/support/src/test/java/tests/support/Support_Field.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -38,7 +38,7 @@ public class Support_Field { protected double doubleField; /** - * + * */ public Support_Field() { } diff --git a/support/src/test/java/tests/support/Support_Format.java b/support/src/test/java/tests/support/Support_Format.java index 2e50959..d53a0ba 100644 --- a/support/src/test/java/tests/support/Support_Format.java +++ b/support/src/test/java/tests/support/Support_Format.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -75,7 +75,7 @@ public class Support_Format extends TestCase { /** * finds attributes with regards to char index in this * AttributedCharacterIterator, and puts them in a vector - * + * * @param iterator * @return a vector, each entry in this vector are of type FieldContainer , * which stores start and end indexes and an attribute this range diff --git a/support/src/test/java/tests/support/Support_GetLocal.java b/support/src/test/java/tests/support/Support_GetLocal.java index 2d7acf7..21f1efd 100644 --- a/support/src/test/java/tests/support/Support_GetLocal.java +++ b/support/src/test/java/tests/support/Support_GetLocal.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_GetPutFields.java b/support/src/test/java/tests/support/Support_GetPutFields.java index f191c01..3cf0d91 100644 --- a/support/src/test/java/tests/support/Support_GetPutFields.java +++ b/support/src/test/java/tests/support/Support_GetPutFields.java @@ -28,12 +28,12 @@ import java.io.IOException; * read them back from an input stream. */ public class Support_GetPutFields implements Serializable { - + private static final long serialVersionUID = 1L; - + public ObjectInputStream.GetField getField; public ObjectOutputStream.PutField putField; - + public boolean booleanValue = false; public byte byteValue = 0; public char charValue = 0; @@ -45,34 +45,34 @@ public class Support_GetPutFields implements Serializable { public SimpleClass objectValue = null; class SimpleClass implements Serializable { - + private static final long serialVersionUID = 1L; private int a; private String b; - + public SimpleClass(int aValue, String bValue) { a = aValue; b = bValue; } - + public int getA() { return a; } - + public String getB() { return b; } - + public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } - + SimpleClass other = (SimpleClass) obj; return (a == other.getA() && b.equals(other.getB())); } } - + public void initTestValues() { booleanValue = true; byteValue = (byte) 0xbe; @@ -84,14 +84,14 @@ public class Support_GetPutFields implements Serializable { objectValue = new SimpleClass(1965, "Hello Mars"); shortValue = 1234; } - + public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } - + Support_GetPutFields other = (Support_GetPutFields) obj; - return (booleanValue == other.booleanValue && + return (booleanValue == other.booleanValue && byteValue == other.byteValue && charValue == other.charValue && doubleValue == other.doubleValue && @@ -102,7 +102,7 @@ public class Support_GetPutFields implements Serializable { shortValue == other.shortValue ); } - + private void readObject(ObjectInputStream ois) throws Exception { getField = ois.readFields(); booleanValue = getField.get("booleanValue", false); @@ -112,11 +112,11 @@ public class Support_GetPutFields implements Serializable { floatValue = getField.get("floatValue", 0.0f); longValue = getField.get("longValue", (long) 0); intValue = getField.get("intValue", 0); - objectValue = (Support_GetPutFields.SimpleClass) + objectValue = (Support_GetPutFields.SimpleClass) getField.get("objectValue", (Object) null); shortValue = getField.get("shortValue", (short) 0); } - + private void writeObject(ObjectOutputStream oos) throws IOException { putField = oos.putFields(); putField.put("booleanValue", booleanValue); diff --git a/support/src/test/java/tests/support/Support_GetPutFieldsDefaulted.java b/support/src/test/java/tests/support/Support_GetPutFieldsDefaulted.java index b9a5e56..25b7417 100644 --- a/support/src/test/java/tests/support/Support_GetPutFieldsDefaulted.java +++ b/support/src/test/java/tests/support/Support_GetPutFieldsDefaulted.java @@ -39,12 +39,12 @@ import java.io.IOException; * </p> */ public class Support_GetPutFieldsDefaulted implements Serializable { - + private static final long serialVersionUID = 1L; - + public ObjectInputStream.GetField getField; public ObjectOutputStream.PutField putField; - + public boolean booleanValue = false; public byte byteValue = 0; public char charValue = 0; @@ -56,34 +56,34 @@ public class Support_GetPutFieldsDefaulted implements Serializable { public SimpleClass objectValue = null; class SimpleClass implements Serializable { - + private static final long serialVersionUID = 1L; private int a; private String b; - + public SimpleClass(int aValue, String bValue) { a = aValue; b = bValue; } - + public int getA() { return a; } - + public String getB() { return b; } - + public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } - + SimpleClass other = (SimpleClass) obj; return (a == other.getA() && b.equals(other.getB())); } } - + public void initTestValues() { booleanValue = true; byteValue = (byte) 0x0b; @@ -95,14 +95,14 @@ public class Support_GetPutFieldsDefaulted implements Serializable { objectValue = new SimpleClass(1965, "Hello Jupiter"); shortValue = 4321; } - + public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } - + Support_GetPutFieldsDefaulted other = (Support_GetPutFieldsDefaulted) obj; - return (booleanValue == other.booleanValue && + return (booleanValue == other.booleanValue && byteValue == other.byteValue && charValue == other.charValue && doubleValue == other.doubleValue && @@ -113,7 +113,7 @@ public class Support_GetPutFieldsDefaulted implements Serializable { shortValue == other.shortValue ); } - + private void readObject(ObjectInputStream ois) throws Exception { getField = ois.readFields(); booleanValue = getField.get("booleanValue", true); @@ -123,17 +123,17 @@ public class Support_GetPutFieldsDefaulted implements Serializable { floatValue = getField.get("floatValue", 298.54f); longValue = getField.get("longValue", (long) 1234567890l); intValue = getField.get("intValue", 999999); - objectValue = (Support_GetPutFieldsDefaulted.SimpleClass) - getField.get("objectValue", + objectValue = (Support_GetPutFieldsDefaulted.SimpleClass) + getField.get("objectValue", new SimpleClass(1965, "Hello Jupiter")); shortValue = getField.get("shortValue", (short) 4321); } - + private void writeObject(ObjectOutputStream oos) throws IOException { putField = oos.putFields(); // Do not put anything into putField so that the get methods // will have to use default values. oos.writeFields(); } - + } diff --git a/support/src/test/java/tests/support/Support_GetPutFieldsDeprecated.java b/support/src/test/java/tests/support/Support_GetPutFieldsDeprecated.java index 81fcef2..0f54e3e 100644 --- a/support/src/test/java/tests/support/Support_GetPutFieldsDeprecated.java +++ b/support/src/test/java/tests/support/Support_GetPutFieldsDeprecated.java @@ -30,12 +30,12 @@ import java.io.Serializable; * to the output stream. */ public class Support_GetPutFieldsDeprecated implements Serializable { - + private static final long serialVersionUID = 1L; - + public ObjectInputStream.GetField getField; public ObjectOutputStream.PutField putField; - + public boolean booleanValue = false; public byte byteValue = 0; public char charValue = 0; @@ -47,34 +47,34 @@ public class Support_GetPutFieldsDeprecated implements Serializable { public SimpleClass objectValue = null; class SimpleClass implements Serializable { - + private static final long serialVersionUID = 1L; private int a; private String b; - + public SimpleClass(int aValue, String bValue) { a = aValue; b = bValue; } - + public int getA() { return a; } - + public String getB() { return b; } - + public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } - + SimpleClass other = (SimpleClass) obj; return (a == other.getA() && b.equals(other.getB())); } } - + public void initTestValues() { booleanValue = true; byteValue = (byte) 0xbe; @@ -86,14 +86,14 @@ public class Support_GetPutFieldsDeprecated implements Serializable { objectValue = new SimpleClass(2001, "A Space Odyssey"); shortValue = 3078; } - + public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } - + Support_GetPutFields other = (Support_GetPutFields) obj; - return (booleanValue == other.booleanValue && + return (booleanValue == other.booleanValue && byteValue == other.byteValue && charValue == other.charValue && doubleValue == other.doubleValue && @@ -104,7 +104,7 @@ public class Support_GetPutFieldsDeprecated implements Serializable { shortValue == other.shortValue ); } - + private void readObject(ObjectInputStream ois) throws Exception { booleanValue = getField.get("booleanValue", false); byteValue = getField.get("byteValue", (byte) 0); @@ -113,11 +113,11 @@ public class Support_GetPutFieldsDeprecated implements Serializable { floatValue = getField.get("floatValue", 0.0f); longValue = getField.get("longValue", (long) 0); intValue = getField.get("intValue", 0); - objectValue = (Support_GetPutFieldsDeprecated.SimpleClass) + objectValue = (Support_GetPutFieldsDeprecated.SimpleClass) getField.get("objectValue", (Object) null); shortValue = getField.get("shortValue", (short) 0); } - + private void writeObject(ObjectOutputStream oos) throws IOException { putField = oos.putFields(); putField.put("booleanValue", booleanValue); diff --git a/support/src/test/java/tests/support/Support_GetResource.java b/support/src/test/java/tests/support/Support_GetResource.java index cef4f8e..7cc2b88 100644 --- a/support/src/test/java/tests/support/Support_GetResource.java +++ b/support/src/test/java/tests/support/Support_GetResource.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_IOTestSecurityManager.java b/support/src/test/java/tests/support/Support_IOTestSecurityManager.java index 0876a50..557787a 100644 --- a/support/src/test/java/tests/support/Support_IOTestSecurityManager.java +++ b/support/src/test/java/tests/support/Support_IOTestSecurityManager.java @@ -24,20 +24,20 @@ import java.util.Iterator; public class Support_IOTestSecurityManager extends SecurityManager { private ArrayList<Permission> permissions; - + public Support_IOTestSecurityManager() { permissions = new ArrayList<Permission>(2); permissions.add(new SerializablePermission("enableSubclassImplementation")); permissions.add(new SerializablePermission("enableSubstitution")); } - + public void checkPermission(Permission p) { for (Iterator<Permission> i = permissions.iterator(); i.hasNext(); ) { if (i.next().equals(p)) { throw new SecurityException(); } } - } + } } diff --git a/support/src/test/java/tests/support/Support_ListTest.java b/support/src/test/java/tests/support/Support_ListTest.java index 645a564..f9b7a21 100644 --- a/support/src/test/java/tests/support/Support_ListTest.java +++ b/support/src/test/java/tests/support/Support_ListTest.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_MapTest2.java b/support/src/test/java/tests/support/Support_MapTest2.java index 217b198..42b5cbf 100644 --- a/support/src/test/java/tests/support/Support_MapTest2.java +++ b/support/src/test/java/tests/support/Support_MapTest2.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_MessageFormat.java b/support/src/test/java/tests/support/Support_MessageFormat.java index 361144c..a2d787a 100644 --- a/support/src/test/java/tests/support/Support_MessageFormat.java +++ b/support/src/test/java/tests/support/Support_MessageFormat.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_NetworkInterface.java b/support/src/test/java/tests/support/Support_NetworkInterface.java index d801a26..dcdaf00 100644 --- a/support/src/test/java/tests/support/Support_NetworkInterface.java +++ b/support/src/test/java/tests/support/Support_NetworkInterface.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_OutputStream.java b/support/src/test/java/tests/support/Support_OutputStream.java index d729273..ce4fa0f 100644 --- a/support/src/test/java/tests/support/Support_OutputStream.java +++ b/support/src/test/java/tests/support/Support_OutputStream.java @@ -45,7 +45,7 @@ public class Support_OutputStream extends OutputStream { } super.close(); } - + @Override public void flush() throws IOException { if (throwsException) { @@ -70,7 +70,7 @@ public class Support_OutputStream extends OutputStream { throw new IOException("Exception thrown for testing purposes."); } if (offset < 0 || count < 0 || (offset + count) > buffer.length) { - throw new IndexOutOfBoundsException(); + throw new IndexOutOfBoundsException(); } for (int i = offset; i < offset + count; i++) { write(buffer[i]); @@ -99,7 +99,7 @@ public class Support_OutputStream extends OutputStream { public String toString() { return new String(buffer, 0, position); } - + public int size() { return position; } diff --git a/support/src/test/java/tests/support/Support_PlatformFile.java b/support/src/test/java/tests/support/Support_PlatformFile.java index 78b03c5..1486b20 100644 --- a/support/src/test/java/tests/support/Support_PlatformFile.java +++ b/support/src/test/java/tests/support/Support_PlatformFile.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_PortManager.java b/support/src/test/java/tests/support/Support_PortManager.java index 81f5e8d..9d2fd86 100644 --- a/support/src/test/java/tests/support/Support_PortManager.java +++ b/support/src/test/java/tests/support/Support_PortManager.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -26,7 +26,7 @@ import java.util.TimeZone; * The port manager is supposed to help finding a free * network port on the machine; however, it uses strange * logic, so leave it to the OS. - * + * * @deprecated Use OS to find free ports. */ public class Support_PortManager { diff --git a/support/src/test/java/tests/support/Support_ProviderTrust.java b/support/src/test/java/tests/support/Support_ProviderTrust.java index cf441e1..9c47e10 100644 --- a/support/src/test/java/tests/support/Support_ProviderTrust.java +++ b/support/src/test/java/tests/support/Support_ProviderTrust.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -23,7 +23,7 @@ import java.security.Provider; /** * This class implements a dummy provider. - * + * */ public class Support_ProviderTrust extends Provider { private static final long serialVersionUID = 1L; @@ -39,7 +39,7 @@ public class Support_ProviderTrust extends Provider { /** * Constructs a new instance of the dummy provider. - * + * */ public Support_ProviderTrust() { super(NAME, VERSION, INFO); diff --git a/support/src/test/java/tests/support/Support_Proxy_I1.java b/support/src/test/java/tests/support/Support_Proxy_I1.java index 66296c9..367c8ac 100644 --- a/support/src/test/java/tests/support/Support_Proxy_I1.java +++ b/support/src/test/java/tests/support/Support_Proxy_I1.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_Proxy_I2.java b/support/src/test/java/tests/support/Support_Proxy_I2.java index e6e5394..f4b0dd1 100644 --- a/support/src/test/java/tests/support/Support_Proxy_I2.java +++ b/support/src/test/java/tests/support/Support_Proxy_I2.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_Proxy_ParentException.java b/support/src/test/java/tests/support/Support_Proxy_ParentException.java index 13ac4c0..cc15b81 100644 --- a/support/src/test/java/tests/support/Support_Proxy_ParentException.java +++ b/support/src/test/java/tests/support/Support_Proxy_ParentException.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_Proxy_SubException.java b/support/src/test/java/tests/support/Support_Proxy_SubException.java index 0d43630..95c23b4 100644 --- a/support/src/test/java/tests/support/Support_Proxy_SubException.java +++ b/support/src/test/java/tests/support/Support_Proxy_SubException.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_SetTest.java b/support/src/test/java/tests/support/Support_SetTest.java index 4325e19..cbea1d8 100644 --- a/support/src/test/java/tests/support/Support_SetTest.java +++ b/support/src/test/java/tests/support/Support_SetTest.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_SimpleDateFormat.java b/support/src/test/java/tests/support/Support_SimpleDateFormat.java index 9447aec..8b94c9c 100644 --- a/support/src/test/java/tests/support/Support_SimpleDateFormat.java +++ b/support/src/test/java/tests/support/Support_SimpleDateFormat.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_StringReader.java b/support/src/test/java/tests/support/Support_StringReader.java index f2d9a94..7ffcaa1 100644 --- a/support/src/test/java/tests/support/Support_StringReader.java +++ b/support/src/test/java/tests/support/Support_StringReader.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -33,7 +33,7 @@ public class Support_StringReader extends Reader { * Construct a StringReader on the String <code>str</code>. The size of * the reader is set to the <code>length()</code> of the String and the * Object to synchronize access through is set to <code>str</code>. - * + * * @param str * the String to filter reads on. */ @@ -47,7 +47,7 @@ public class Support_StringReader extends Reader { * This method closes this StringReader. Once it is closed, you can no * longer read from it. Only the first invocation of this method has any * effect. - * + * */ @Override public void close() { @@ -69,10 +69,10 @@ public class Support_StringReader extends Reader { * Set a Mark position in this Reader. The parameter <code>readLimit</code> * is ignored for StringReaders. Sending reset() will reposition the reader * back to the marked position provided the mark has not been invalidated. - * + * * @param readlimit * ignored for StringReaders. - * + * * @exception java.io.IOException * If an error occurs attempting mark this StringReader. */ @@ -94,7 +94,7 @@ public class Support_StringReader extends Reader { /** * Answers a boolean indicating whether or not this StringReader supports * mark() and reset(). This method always returns true. - * + * * @return <code>true</code> if mark() and reset() are supported, * <code>false</code> otherwise. This implementation always * returns <code>true</code>. @@ -108,9 +108,9 @@ public class Support_StringReader extends Reader { * Reads a single character from this StringReader and returns the result as * an int. The 2 higher-order bytes are set to 0. If the end of reader was * encountered then return -1. - * + * * @return the character read or -1 if end of reader. - * + * * @exception java.io.IOException * If the StringReader is already closed. */ @@ -132,7 +132,7 @@ public class Support_StringReader extends Reader { * stores them at <code>offset</code> in the character array * <code>buf</code>. Returns the number of characters actually read or -1 * if the end of reader was encountered. - * + * * @param buf * character array to store the read characters * @param offset @@ -140,7 +140,7 @@ public class Support_StringReader extends Reader { * @param count * maximum number of characters to read * @return the number of characters read or -1 if end of reader. - * + * * @exception java.io.IOException * If the StringReader is closed. */ @@ -174,11 +174,11 @@ public class Support_StringReader extends Reader { * the result is <code>false</code> this Reader may or may not block when * <code>read()</code> is sent. The implementation in StringReader always * returns <code>true</code> even when it has been closed. - * + * * @return <code>true</code> if the receiver will not block when * <code>read()</code> is called, <code>false</code> if unknown * or blocking will occur. - * + * * @exception java.io.IOException * If an IO error occurs. */ @@ -197,7 +197,7 @@ public class Support_StringReader extends Reader { * location. Invocations of <code>read()/skip()</code> will occur from * this new location. If this Reader was not marked, the StringReader is * reset to the beginning of the String. - * + * * @exception java.io.IOException * If this StringReader has already been closed. */ @@ -216,11 +216,11 @@ public class Support_StringReader extends Reader { * Skips <code>count</code> number of characters in this StringReader. * Subsequent <code>read()</code>'s will not return these characters * unless <code>reset()</code> is used. - * + * * @param count * The number of characters to skip. * @return the number of characters actually skipped. - * + * * @exception java.io.IOException * If this StringReader has already been closed. */ diff --git a/support/src/test/java/tests/support/Support_StringWriter.java b/support/src/test/java/tests/support/Support_StringWriter.java index 348f547..29df03a 100644 --- a/support/src/test/java/tests/support/Support_StringWriter.java +++ b/support/src/test/java/tests/support/Support_StringWriter.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -51,7 +51,7 @@ public class Support_StringWriter extends Writer { /** * Close this Writer. This is the concrete implementation required. This * particular implementation does nothing. - * + * * @exception java.io.IOException * If an IO error occurs closing this StringWriter. */ @@ -62,7 +62,7 @@ public class Support_StringWriter extends Writer { /** * Flush this Writer. This is the concrete implementation required. This * particular implementation does nothing. - * + * */ @Override public void flush() { @@ -72,7 +72,7 @@ public class Support_StringWriter extends Writer { * Answer the contents of this StringWriter as a StringBuffer. Any changes * made to the StringBuffer by the receiver or the caller are reflected in * this StringWriter. - * + * * @return this StringWriters local StringBuffer. */ public StringBuffer getBuffer() { @@ -85,7 +85,7 @@ public class Support_StringWriter extends Writer { * Answer the contents of this StringWriter as a String. Any changes made to * the StringBuffer by the receiver after returning will not be reflected in * the String returned to the caller. - * + * * @return this StringWriters current contents as a String. */ @Override @@ -98,14 +98,14 @@ public class Support_StringWriter extends Writer { /** * Writes <code>count</code> characters starting at <code>offset</code> * in <code>buf</code> to this StringWriter. - * + * * @param buf * the non-null array containing characters to write. * @param offset * offset in buf to retrieve characters * @param count * maximum number of characters to write - * + * * @exception java.lang.ArrayIndexOutOfBoundsException * If offset or count are outside of bounds. */ @@ -126,10 +126,10 @@ public class Support_StringWriter extends Writer { * Writes the specified character <code>oneChar</code> to this * StringWriter. This implementation writes the low order two bytes to the * Stream. - * + * * @param oneChar * The character to write - * + * */ @Override public void write(int oneChar) { @@ -141,10 +141,10 @@ public class Support_StringWriter extends Writer { /** * Writes the characters from the String <code>str</code> to this * StringWriter. - * + * * @param str * the non-null String containing the characters to write. - * + * */ @Override public void write(String str) { @@ -157,14 +157,14 @@ public class Support_StringWriter extends Writer { * Writes <code>count</code> number of characters starting at * <code>offset</code> from the String <code>str</code> to this * StringWriter. - * + * * @param str * the non-null String containing the characters to write. * @param offset * the starting point to retrieve characters. * @param count * the number of characters to retrieve and write. - * + * * @exception java.lang.ArrayIndexOutOfBoundsException * If offset or count are outside of bounds. */ diff --git a/support/src/test/java/tests/support/Support_TestProvider.java b/support/src/test/java/tests/support/Support_TestProvider.java index 63e774a..0b5d319 100644 --- a/support/src/test/java/tests/support/Support_TestProvider.java +++ b/support/src/test/java/tests/support/Support_TestProvider.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_TestResource.java b/support/src/test/java/tests/support/Support_TestResource.java index 78637f8..11831f6 100644 --- a/support/src/test/java/tests/support/Support_TestResource.java +++ b/support/src/test/java/tests/support/Support_TestResource.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_TestResource_en.java b/support/src/test/java/tests/support/Support_TestResource_en.java index 4a69d7f..8001db0 100644 --- a/support/src/test/java/tests/support/Support_TestResource_en.java +++ b/support/src/test/java/tests/support/Support_TestResource_en.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_TestResource_en_US.java b/support/src/test/java/tests/support/Support_TestResource_en_US.java index 4d73675..59951f4 100644 --- a/support/src/test/java/tests/support/Support_TestResource_en_US.java +++ b/support/src/test/java/tests/support/Support_TestResource_en_US.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_TestResource_fr.java b/support/src/test/java/tests/support/Support_TestResource_fr.java index 8bc0829..4cc45cf 100644 --- a/support/src/test/java/tests/support/Support_TestResource_fr.java +++ b/support/src/test/java/tests/support/Support_TestResource_fr.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_TestResource_fr_FR.java b/support/src/test/java/tests/support/Support_TestResource_fr_FR.java index 59c56bd..a7f6122 100644 --- a/support/src/test/java/tests/support/Support_TestResource_fr_FR.java +++ b/support/src/test/java/tests/support/Support_TestResource_fr_FR.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java b/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java index b9f4d60..7db8ad5 100644 --- a/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java +++ b/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_TestWebData.java b/support/src/test/java/tests/support/Support_TestWebData.java index b72fdfd..9fdd021 100644 --- a/support/src/test/java/tests/support/Support_TestWebData.java +++ b/support/src/test/java/tests/support/Support_TestWebData.java @@ -30,7 +30,7 @@ import java.util.Date; public class Support_TestWebData { public final static byte[] test1 = utfBytes(); public final static byte[] test2 = newBinaryFile(8192); - + private static byte[] utfBytes() { try { return "<html>\n<body>\n<h1>Hello World!</h1>\n</body>\n</html>\n".getBytes("UTF-8"); @@ -38,7 +38,7 @@ public class Support_TestWebData { throw new AssertionError(); } } - + private static byte[] newBinaryFile(int byteCount) { byte[] result = new byte[byteCount]; for (int i = 0; i < result.length; ++i) { @@ -46,10 +46,10 @@ public class Support_TestWebData { } return result; } - + // string for test request post body public final static String postContent = "user=111"; - + // Array of all test data public final static byte[][] tests = { test1, diff --git a/support/src/test/java/tests/support/Support_TimeZone.java b/support/src/test/java/tests/support/Support_TimeZone.java index 750f98e..e9d2895 100644 --- a/support/src/test/java/tests/support/Support_TimeZone.java +++ b/support/src/test/java/tests/support/Support_TimeZone.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -24,7 +24,7 @@ import java.util.TimeZone; /** * Sample java.util.TimeZone subclass to test getDSTSavings() and getOffset(long) * APIs - * + * */ public class Support_TimeZone extends TimeZone { private static final long serialVersionUID = 1L; diff --git a/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java b/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java index 0100c01..a07b9b4 100644 --- a/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java +++ b/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java b/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java index 6405701..464ee93 100644 --- a/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java +++ b/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java @@ -1,13 +1,13 @@ -/* +/* * 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. diff --git a/support/src/test/java/tests/support/Support_Xml.java b/support/src/test/java/tests/support/Support_Xml.java index 03ed4a1..7e7702e 100644 --- a/support/src/test/java/tests/support/Support_Xml.java +++ b/support/src/test/java/tests/support/Support_Xml.java @@ -1,12 +1,12 @@ /* * Copyright (C) 2009 The Android Open Source Project - * + * * 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. @@ -31,23 +31,23 @@ public class Support_Xml { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setCoalescing(true); dbf.setExpandEntityReferences(true); - + ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes()); DocumentBuilder builder = dbf.newDocumentBuilder(); - + return builder.parse(stream); } - + public static String firstChildTextOf(Document doc) throws Exception { NodeList children = doc.getFirstChild().getChildNodes(); assertEquals(1, children.getLength()); return children.item(0).getNodeValue(); } - + public static Element firstElementOf(Document doc) throws Exception { return (Element) doc.getFirstChild(); } - + public static String attrOf(Element e) throws Exception { return e.getAttribute("attr"); } diff --git a/support/src/test/java/tests/support/resource/Support_Resources.java b/support/src/test/java/tests/support/resource/Support_Resources.java index 67b6001..0bd0ccf 100644 --- a/support/src/test/java/tests/support/resource/Support_Resources.java +++ b/support/src/test/java/tests/support/resource/Support_Resources.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -142,12 +142,12 @@ public class Support_Resources { /** * Util method to load resource files - * + * * @param name - name of resource file * @return - resource input stream */ public static InputStream getResourceStream(String name) { - + InputStream is = Support_Resources.class.getResourceAsStream(name); if (is == null) { @@ -157,13 +157,13 @@ public class Support_Resources { throw new RuntimeException("Failed to load resource: " + name); } } - + return is; } /** * Util method to write resource files directly to an OutputStream. - * + * * @param name - name of resource file. * @param out - OutputStream to write to. * @return - number of bytes written to out. @@ -188,7 +188,7 @@ public class Support_Resources { /** * Util method to get absolute path to resource file - * + * * @param name - name of resource file * @return - path to resource */ diff --git a/support/src/test/java/tests/util/CallVerificationStack.java b/support/src/test/java/tests/util/CallVerificationStack.java index 5646a77..6c1881b 100644 --- a/support/src/test/java/tests/util/CallVerificationStack.java +++ b/support/src/test/java/tests/util/CallVerificationStack.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -21,7 +21,7 @@ import java.util.Stack; /** * A stack to store the parameters of a call, as well as the call stack. - * + * */ public class CallVerificationStack extends Stack<Object> { @@ -66,7 +66,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Gets the singleton instance. - * + * * @return the singleton instance */ public static CallVerificationStack getInstance() { @@ -89,7 +89,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Gets the "current" calling class name. - * + * * @return the "current" calling class name */ public String getCurrentSourceClass() { @@ -98,7 +98,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Gets the "current" calling method name. - * + * * @return the "current" calling method name */ public String getCurrentSourceMethod() { @@ -107,7 +107,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Clear the parameter stack and the call stack. - * + * */ @Override public void clear() { @@ -123,7 +123,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pushes a boolean onto the top of this stack. - * + * * @param val * the value to push */ @@ -133,7 +133,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pushes a char onto the top of this stack. - * + * * @param val * the value to push */ @@ -143,7 +143,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pushes a double onto the top of this stack. - * + * * @param val * the value to push */ @@ -153,7 +153,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pushes a float onto the top of this stack. - * + * * @param val * the value to push */ @@ -163,7 +163,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pushes an int onto the top of this stack. - * + * * @param val * the value to push */ @@ -173,7 +173,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pushes a long onto the top of this stack. - * + * * @param val * the value to push */ @@ -183,7 +183,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pushes a short onto the top of this stack. - * + * * @param val * the value to push */ @@ -193,7 +193,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pop an object. - * + * * @return the object */ @Override @@ -204,7 +204,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pop a boolean. - * + * * @return the value */ public boolean popBoolean() { @@ -215,7 +215,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pop a char. - * + * * @return the value */ public char popChar() { @@ -226,7 +226,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pop a double. - * + * * @return the value */ public double popDouble() { @@ -237,7 +237,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pop a float. - * + * * @return the value */ public float popFloat() { @@ -248,7 +248,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pop a int. - * + * * @return the value */ public int popInt() { @@ -259,7 +259,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pop a long. - * + * * @return the value */ public long popLong() { @@ -270,7 +270,7 @@ public class CallVerificationStack extends Stack<Object> { /** * Pop a short. - * + * * @return the value */ public short popShort() { diff --git a/support/src/test/java/tests/util/FieldTestFileGenerator.java b/support/src/test/java/tests/util/FieldTestFileGenerator.java index ea6acfd..f0079f6 100644 --- a/support/src/test/java/tests/util/FieldTestFileGenerator.java +++ b/support/src/test/java/tests/util/FieldTestFileGenerator.java @@ -28,7 +28,7 @@ import tests.support.Support_GetPutFieldsDefaulted; * Writes three test files that are used as reference in * {@code tests.api.java.io.ObjectInputStreamGetFieldTest} and * {@code tests.api.java.io.ObjectOutputStreamPutFieldTest}. - * These files must be moved to + * These files must be moved to * {@code $ANDROID_BUILD_TOP/dalvik/libcore/luni/src/test/resources/tests/api/java/io} * to be included at the correct location in the core tests package. * <p> @@ -42,12 +42,12 @@ public class FieldTestFileGenerator { FileOutputStream fos = null; ObjectOutputStream oos = null; Support_GetPutFields toSerialize = new Support_GetPutFields(); - Support_GetPutFieldsDeprecated toSerializeDeprecated = + Support_GetPutFieldsDeprecated toSerializeDeprecated = new Support_GetPutFieldsDeprecated(); - Support_GetPutFieldsDefaulted toSerializeDefaulted = + Support_GetPutFieldsDefaulted toSerializeDefaulted = new Support_GetPutFieldsDefaulted(); boolean success = true; - + toSerialize.initTestValues(); toSerializeDeprecated.initTestValues(); toSerializeDefaulted.initTestValues(); @@ -66,7 +66,7 @@ public class FieldTestFileGenerator { finally { if (fos != null) fos.close(); } - + System.out.println("Trying to write the test file 'testFieldsDeprecated.ser'..."); try { fos = new FileOutputStream("testFieldsDeprecated.ser"); @@ -77,11 +77,11 @@ public class FieldTestFileGenerator { catch (Exception e) { System.out.println("Exception occured while writing the file: " + e); success = false; - } + } finally { if (fos != null) fos.close(); } - + System.out.println("Trying to write the test file 'testFieldsDefaulted.ser'..."); try { fos = new FileOutputStream("testFieldsDefaulted.ser"); @@ -92,12 +92,12 @@ public class FieldTestFileGenerator { catch (Exception e) { System.out.println("Exception occured while writing the file: " + e); success = false; - } + } finally { if (fos != null) fos.close(); } - if (success) { + if (success) { System.out.println("Success!"); } else { System.out.println("Failure!"); diff --git a/support/src/test/java/tests/util/SerializationTester.java b/support/src/test/java/tests/util/SerializationTester.java index c69d591..e67529b 100644 --- a/support/src/test/java/tests/util/SerializationTester.java +++ b/support/src/test/java/tests/util/SerializationTester.java @@ -1,13 +1,13 @@ -/* +/* * 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. @@ -30,7 +30,7 @@ import java.net.URL; /** * This class simplifies the serialization test. - * + * */ public class SerializationTester { @@ -61,7 +61,7 @@ public class SerializationTester { /** * Serialize an object and then deserialize it. - * + * * @param inputObject * the input object * @return the deserialized object @@ -83,7 +83,7 @@ public class SerializationTester { /** * Tests the serialization and deserialization of const objects. - * + * * @param inputObject * A const object * @return true if the deserialized object is the same as the input object, @@ -97,7 +97,7 @@ public class SerializationTester { /** * Tests the serialization and deserialization of instance objects. - * + * * @param inputObject * An object * @return true if the deserialized object is equal to the input object, @@ -111,7 +111,7 @@ public class SerializationTester { /** * Tests the serialization compatibility with reference const objects. - * + * * @param obj * the object to be checked * @param fileName @@ -128,7 +128,7 @@ public class SerializationTester { /** * Tests the serialization compatibility with reference for instance * objects. - * + * * @param obj * the object to be checked * @param fileName @@ -144,7 +144,7 @@ public class SerializationTester { /** * Deserialize an object from a file. - * + * * @param obj * the object to be serialized if no serialization file is found * @param fileName @@ -190,7 +190,7 @@ public class SerializationTester { /* * Creates a serialization output. - * + * * @param obj the object to be serialized @param fileName the output file * @throws Exception If any occurs. */ @@ -231,7 +231,7 @@ public class SerializationTester { /** * Gets the last deserialized object. - * + * * @return the last deserialized object */ public static Object getLastOutput() { |