onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1440663 - /incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/
Date Wed, 30 Jan 2013 20:52:04 GMT
Author: simonetripodi
Date: Wed Jan 30 20:52:04 2013
New Revision: 1440663

URL: http://svn.apache.org/viewvc?rev=1440663&view=rev
Log:
@trivial removed `this` keyword usage here unneeded

Modified:
    incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ConfigurationStateProvider.java
    incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/GuiceAwareConstraintValidatorFactory.java
    incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidateMethodInterceptor.java
    incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidationModule.java
    incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorFactoryProvider.java
    incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorProvider.java

Modified: incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ConfigurationStateProvider.java
URL: http://svn.apache.org/viewvc/incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ConfigurationStateProvider.java?rev=1440663&r1=1440662&r2=1440663&view=diff
==============================================================================
--- incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ConfigurationStateProvider.java
(original)
+++ incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ConfigurationStateProvider.java
Wed Jan 30 20:52:04 2013
@@ -82,10 +82,10 @@ public final class ConfigurationStatePro
      */
     public ConfigurationState get()
     {
-        ConfigurationImpl configuration = new ConfigurationImpl( this.bootstrapState, this.validationProvider
);
-        configuration.traversableResolver( this.traversableResolver );
-        configuration.messageInterpolator( this.messageInterpolator );
-        configuration.constraintValidatorFactory( this.constraintValidatorFactory );
+        ConfigurationImpl configuration = new ConfigurationImpl( bootstrapState, validationProvider
);
+        configuration.traversableResolver( traversableResolver );
+        configuration.messageInterpolator( messageInterpolator );
+        configuration.constraintValidatorFactory( constraintValidatorFactory );
         return configuration;
     }
 

Modified: incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/GuiceAwareConstraintValidatorFactory.java
URL: http://svn.apache.org/viewvc/incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/GuiceAwareConstraintValidatorFactory.java?rev=1440663&r1=1440662&r2=1440663&view=diff
==============================================================================
--- incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/GuiceAwareConstraintValidatorFactory.java
(original)
+++ incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/GuiceAwareConstraintValidatorFactory.java
Wed Jan 30 20:52:04 2013
@@ -47,7 +47,7 @@ final class GuiceAwareConstraintValidato
      */
     public <T extends ConstraintValidator<?, ?>> T getInstance( Class<T>
key )
     {
-        return this.injector.getInstance( key );
+        return injector.getInstance( key );
     }
 
 }

Modified: incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidateMethodInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidateMethodInterceptor.java?rev=1440663&r1=1440662&r2=1440663&view=diff
==============================================================================
--- incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidateMethodInterceptor.java
(original)
+++ incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidateMethodInterceptor.java
Wed Jan 30 20:52:04 2013
@@ -70,7 +70,7 @@ public final class ValidateMethodInterce
     {
         Validate validate = invocation.getMethod().getAnnotation( Validate.class );
 
-        Validator validator = this.validatorFactory.getValidator();
+        Validator validator = validatorFactory.getValidator();
         MethodValidator methodValidator = validator.unwrap( MethodValidator.class );
 
         Set<ConstraintViolation<?>> constraintViolations = new HashSet<ConstraintViolation<?>>();

Modified: incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidationModule.java
URL: http://svn.apache.org/viewvc/incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidationModule.java?rev=1440663&r1=1440662&r2=1440663&view=diff
==============================================================================
--- incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidationModule.java
(original)
+++ incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidationModule.java
Wed Jan 30 20:52:04 2013
@@ -51,20 +51,18 @@ public final class ValidationModule
     protected void configure()
     {
         // apache bval bootstrap
-        this.bind( MessageInterpolator.class ).to( DefaultMessageInterpolator.class ).in(
Scopes.SINGLETON );
-        this.bind( TraversableResolver.class ).to( DefaultTraversableResolver.class ).in(
Scopes.SINGLETON );
-        this.bind( ConstraintValidatorFactory.class ).to( GuiceAwareConstraintValidatorFactory.class
);
-        this.bind( new TypeLiteral<ValidationProvider<?>>()
-        {
-        } ).to( ApacheValidationProvider.class ).in( Scopes.SINGLETON );
-        this.bind( ConfigurationState.class ).toProvider( ConfigurationStateProvider.class
).in( Scopes.SINGLETON );
-        this.bind( ValidatorFactory.class ).toProvider( ValidatorFactoryProvider.class ).in(
Scopes.SINGLETON );
-        this.bind( Validator.class ).toProvider( ValidatorProvider.class );
+        bind( MessageInterpolator.class ).to( DefaultMessageInterpolator.class ).in( Scopes.SINGLETON
);
+        bind( TraversableResolver.class ).to( DefaultTraversableResolver.class ).in( Scopes.SINGLETON
);
+        bind( ConstraintValidatorFactory.class ).to( GuiceAwareConstraintValidatorFactory.class
);
+        bind( new TypeLiteral<ValidationProvider<?>>(){} ).to( ApacheValidationProvider.class
).in( Scopes.SINGLETON );
+        bind( ConfigurationState.class ).toProvider( ConfigurationStateProvider.class ).in(
Scopes.SINGLETON );
+        bind( ValidatorFactory.class ).toProvider( ValidatorFactoryProvider.class ).in( Scopes.SINGLETON
);
+        bind( Validator.class ).toProvider( ValidatorProvider.class );
 
         // AOP stuff
         MethodInterceptor validateMethodInterceptor = new ValidateMethodInterceptor();
-        this.binder().requestInjection( validateMethodInterceptor );
-        this.bindInterceptor( Matchers.any(), Matchers.annotatedWith( Validate.class ), validateMethodInterceptor
);
+        binder().requestInjection( validateMethodInterceptor );
+        bindInterceptor( Matchers.any(), Matchers.annotatedWith( Validate.class ), validateMethodInterceptor
);
     }
 
 }

Modified: incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorFactoryProvider.java
URL: http://svn.apache.org/viewvc/incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorFactoryProvider.java?rev=1440663&r1=1440662&r2=1440663&view=diff
==============================================================================
--- incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorFactoryProvider.java
(original)
+++ incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorFactoryProvider.java
Wed Jan 30 20:52:04 2013
@@ -48,7 +48,7 @@ final class ValidatorFactoryProvider
      */
     public ValidatorFactory get()
     {
-        return new ApacheValidationProvider().buildValidatorFactory( this.configurationState
);
+        return new ApacheValidationProvider().buildValidatorFactory( configurationState );
     }
 
 }

Modified: incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorProvider.java
URL: http://svn.apache.org/viewvc/incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorProvider.java?rev=1440663&r1=1440662&r2=1440663&view=diff
==============================================================================
--- incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorProvider.java
(original)
+++ incubator/onami/sandbox/validation/src/main/java/org/apache/onami/validation/ValidatorProvider.java
Wed Jan 30 20:52:04 2013
@@ -49,7 +49,7 @@ final class ValidatorProvider
      */
     public Validator get()
     {
-        return this.validatorFactory.getValidator();
+        return validatorFactory.getValidator();
     }
 
 }



Mime
View raw message