Code cleanup (Removed spaces) (#1474)
* Removed double spaces in comments * Unified comments * Removed space * Removed spaces in code
This commit is contained in:
parent
4d942db168
commit
b75e1bbc79
|
@ -45,14 +45,16 @@ public class RecursiveTypesResolveTest extends TestCase {
|
||||||
/**
|
/**
|
||||||
* Test simplest case of recursion.
|
* Test simplest case of recursion.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void testRecursiveResolveSimple() {
|
public void testRecursiveResolveSimple() {
|
||||||
TypeAdapter<Foo1> adapter = new Gson().getAdapter(Foo1.class);
|
TypeAdapter<Foo1> adapter = new Gson().getAdapter(Foo1.class);
|
||||||
assertNotNull(adapter);
|
assertNotNull(adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
/**
|
||||||
// Real-world samples, found in Issues #603 and #440.
|
* Real-world samples, found in Issues #603 and #440.
|
||||||
//
|
*/
|
||||||
|
|
||||||
public void testIssue603PrintStream() {
|
public void testIssue603PrintStream() {
|
||||||
TypeAdapter<PrintStream> adapter = new Gson().getAdapter(PrintStream.class);
|
TypeAdapter<PrintStream> adapter = new Gson().getAdapter(PrintStream.class);
|
||||||
assertNotNull(adapter);
|
assertNotNull(adapter);
|
||||||
|
@ -63,9 +65,9 @@ public class RecursiveTypesResolveTest extends TestCase {
|
||||||
assertNotNull(adapter);
|
assertNotNull(adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
/**
|
||||||
// Tests belows check the behaviour of the methods changed for the fix
|
* Tests belows check the behaviour of the methods changed for the fix.
|
||||||
//
|
*/
|
||||||
|
|
||||||
public void testDoubleSupertype() {
|
public void testDoubleSupertype() {
|
||||||
assertEquals($Gson$Types.supertypeOf(Number.class),
|
assertEquals($Gson$Types.supertypeOf(Number.class),
|
||||||
|
@ -87,9 +89,9 @@ public class RecursiveTypesResolveTest extends TestCase {
|
||||||
$Gson$Types.subtypeOf($Gson$Types.supertypeOf(Number.class)));
|
$Gson$Types.subtypeOf($Gson$Types.supertypeOf(Number.class)));
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
/**
|
||||||
// tests for recursion while resolving type variables
|
* Tests for recursion while resolving type variables.
|
||||||
//
|
*/
|
||||||
|
|
||||||
private static class TestType<X> {
|
private static class TestType<X> {
|
||||||
TestType<? super X> superType;
|
TestType<? super X> superType;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user