aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorcushon <cushon@google.com>2018-11-27 08:51:25 -0800
committerRon Shapiro <ronshapiro@google.com>2018-11-28 14:21:25 -0500
commitc282378149260db3c9d0a1c513eb57c9966a9b10 (patch)
tree2bd8554f1e82d2ede50e3b0e2df0afb4ee1634f7 /common
parent044ccda6bf4b6334faa7e87d0238a6e5a910d4a3 (diff)
downloadauto-c282378149260db3c9d0a1c513eb57c9966a9b10.tar.gz
Fix indentation
RELNOTES=N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=222998072
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/com/google/auto/common/MoreTypes.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/common/src/main/java/com/google/auto/common/MoreTypes.java b/common/src/main/java/com/google/auto/common/MoreTypes.java
index a5c96ab0..25eba686 100644
--- a/common/src/main/java/com/google/auto/common/MoreTypes.java
+++ b/common/src/main/java/com/google/auto/common/MoreTypes.java
@@ -423,7 +423,7 @@ public final class MoreTypes {
Element element = t.asElement();
if (visiting.contains(element)) {
return 0;
- }
+ }
Set<Element> newVisiting = new HashSet<Element>(visiting);
newVisiting.add(element);
int result = hashKind(HASH_SEED, t);
@@ -457,9 +457,9 @@ public final class MoreTypes {
result += t.getLowerBound().accept(this, visiting);
TypeParameterElement element = (TypeParameterElement) t.asElement();
for (TypeMirror bound : element.getBounds()) {
- result *= HASH_MULTIPLIER;
+ result *= HASH_MULTIPLIER;
result += bound.accept(this, visiting);
- }
+ }
return result;
}
@@ -477,7 +477,7 @@ public final class MoreTypes {
public Integer visitUnknown(TypeMirror t, Set<Element> visiting) {
throw new UnsupportedOperationException();
}
- };
+ };
private static int hashList(List<? extends TypeMirror> mirrors, Set<Element> visiting) {
int result = HASH_SEED;
@@ -561,24 +561,24 @@ public final class MoreTypes {
@Override
protected Element defaultAction(TypeMirror e, Void p) {
- throw new IllegalArgumentException(e + " cannot be converted to an Element");
- }
+ throw new IllegalArgumentException(e + " cannot be converted to an Element");
+ }
@Override
public Element visitDeclared(DeclaredType t, Void p) {
- return t.asElement();
- }
+ return t.asElement();
+ }
@Override
public Element visitError(ErrorType t, Void p) {
- return t.asElement();
- }
+ return t.asElement();
+ }
@Override
public Element visitTypeVariable(TypeVariable t, Void p) {
- return t.asElement();
- }
- };
+ return t.asElement();
+ }
+ };
// TODO(gak): consider removing these two methods as they're pretty trivial now
public static TypeElement asTypeElement(TypeMirror mirror) {