aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBenedikt Ritter <britter@apache.org>2016-06-18 11:04:24 +0000
committerBenedikt Ritter <britter@apache.org>2016-06-18 11:04:24 +0000
commitdc51387cfcd868ea837da2b7d2be87c70bcb8f9a (patch)
tree7c4f45303f4acc9c458d27f279d55992a17cf67d /src/test
parent4aec5c55ff8bd122cd5d8cf093a595de81bbdce8 (diff)
downloadapache-commons-bcel-dc51387cfcd868ea837da2b7d2be87c70bcb8f9a.tar.gz
Use spaces for indentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/bcel/trunk@1748963 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/apache/bcel/ElementValueGenTestCase.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/test/java/org/apache/bcel/ElementValueGenTestCase.java b/src/test/java/org/apache/bcel/ElementValueGenTestCase.java
index 87eb3acf..06ab71e8 100644
--- a/src/test/java/org/apache/bcel/ElementValueGenTestCase.java
+++ b/src/test/java/org/apache/bcel/ElementValueGenTestCase.java
@@ -210,23 +210,23 @@ public class ElementValueGenTestCase extends AbstractTestCase
}
private void checkSerialize(final ElementValueGen evgBefore, final ConstantPoolGen cpg) {
- try {
- String beforeValue = evgBefore.stringifyValue();
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
- try (DataOutputStream dos = new DataOutputStream(baos)) {
- evgBefore.dump(dos);
- dos.flush();
- }
- ElementValueGen evgAfter;
- try (DataInputStream dis = new DataInputStream(new ByteArrayInputStream(baos.toByteArray()))) {
- evgAfter = ElementValueGen.readElementValue(dis, cpg);
- }
- String afterValue = evgAfter.stringifyValue();
- if (!beforeValue.equals(afterValue)) {
- fail("Deserialization failed: before='" + beforeValue + "' after='" + afterValue + "'");
- }
- } catch (IOException ioe) {
- fail("Unexpected exception whilst checking serialization: " + ioe);
- }
- }
+ try {
+ String beforeValue = evgBefore.stringifyValue();
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ try (DataOutputStream dos = new DataOutputStream(baos)) {
+ evgBefore.dump(dos);
+ dos.flush();
+ }
+ ElementValueGen evgAfter;
+ try (DataInputStream dis = new DataInputStream(new ByteArrayInputStream(baos.toByteArray()))) {
+ evgAfter = ElementValueGen.readElementValue(dis, cpg);
+ }
+ String afterValue = evgAfter.stringifyValue();
+ if (!beforeValue.equals(afterValue)) {
+ fail("Deserialization failed: before='" + beforeValue + "' after='" + afterValue + "'");
+ }
+ } catch (IOException ioe) {
+ fail("Unexpected exception whilst checking serialization: " + ioe);
+ }
+ }
}