onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1462957 - /incubator/onami/trunk/scopes/src/main/java/org/apache/onami/scopes/ConcurrentLazySingletonScopeImpl.java
Date Sun, 31 Mar 2013 14:01:11 GMT
Author: simonetripodi
Date: Sun Mar 31 14:01:11 2013
New Revision: 1462957

URL: http://svn.apache.org/r1462957
Log:
trivial: code format, no functional modifications

Modified:
    incubator/onami/trunk/scopes/src/main/java/org/apache/onami/scopes/ConcurrentLazySingletonScopeImpl.java

Modified: incubator/onami/trunk/scopes/src/main/java/org/apache/onami/scopes/ConcurrentLazySingletonScopeImpl.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/scopes/src/main/java/org/apache/onami/scopes/ConcurrentLazySingletonScopeImpl.java?rev=1462957&r1=1462956&r2=1462957&view=diff
==============================================================================
--- incubator/onami/trunk/scopes/src/main/java/org/apache/onami/scopes/ConcurrentLazySingletonScopeImpl.java
(original)
+++ incubator/onami/trunk/scopes/src/main/java/org/apache/onami/scopes/ConcurrentLazySingletonScopeImpl.java
Sun Mar 31 14:01:11 2013
@@ -85,8 +85,8 @@ class ConcurrentLazySingletonScopeImpl
 
                 Object localInstance = instance;
                 // This is safe because instance has type T or is equal to NULL
-                @SuppressWarnings( { "unchecked", "UnnecessaryLocalVariable" } ) T returnedInstance
=
-                    ( localInstance != NULL ) ? (T) localInstance : null;
+                @SuppressWarnings( { "unchecked", "UnnecessaryLocalVariable" } )
+                T returnedInstance = ( localInstance != NULL ) ? (T) localInstance : null;
                 return returnedInstance;
             }
 



Mime
View raw message