Polish whitespace and formatting

master
Phillip Webb 12 years ago
parent 40e8d3f1a9
commit 6e3c3c58b5
  1. 4
      spring-core/src/main/java/org/springframework/core/annotation/AnnotationAwareOrderComparator.java
  2. 2
      spring-core/src/test/java/org/springframework/core/annotation/AnnotationAwareOrderComparatorTests.java

@ -34,8 +34,12 @@ import org.springframework.core.Ordered;
*/ */
public class AnnotationAwareOrderComparator extends OrderComparator { public class AnnotationAwareOrderComparator extends OrderComparator {
/**
* Shared default instance of AnnotationAwareOrderComparator.
*/
public static AnnotationAwareOrderComparator INSTANCE = new AnnotationAwareOrderComparator(); public static AnnotationAwareOrderComparator INSTANCE = new AnnotationAwareOrderComparator();
@Override @Override
protected int getOrder(Object obj) { protected int getOrder(Object obj) {
if (obj instanceof Ordered) { if (obj instanceof Ordered) {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012 the original author or authors. * Copyright 2002-2012 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

Loading…
Cancel
Save