Skip to content

Commit

Permalink
Make Validation sample compile in strict mode (failOnError)
Browse files Browse the repository at this point in the history
Change-Id: Ieeb310ff317cc03eb004ea07d37e9855ccbfc450
  • Loading branch information
tbroyer committed Jan 24, 2016
1 parent a0de97b commit 0e6650a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/validation/pom.xml
Expand Up @@ -133,7 +133,7 @@
<configuration>
<moduleName>com.google.gwt.sample.validation.Validation</moduleName>
<moduleShortName>Validation</moduleShortName>
<failOnError>false</failOnError><!-- There are deliberate server-only code in ServerValidator that would fail the build -->
<failOnError>true</failOnError>
<!-- Compiler configuration -->
<compilerArgs>
<!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -->
Expand Down
Expand Up @@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.sample.validation.shared;
package com.google.gwt.sample.validation.server;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
Expand Down Expand Up @@ -44,4 +44,4 @@
Class<?>[] groups() default {};

Class<? extends Payload>[] payload() default {};
}
}
Expand Up @@ -13,7 +13,9 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.sample.validation.shared;
package com.google.gwt.sample.validation.server;

import com.google.gwt.sample.validation.shared.Person;

import java.lang.reflect.Method;

Expand Down
Expand Up @@ -15,6 +15,8 @@
*/
package com.google.gwt.sample.validation.shared;

import com.google.gwt.sample.validation.server.ServerConstraint;

import com.google.gwt.user.client.rpc.IsSerializable;

import java.util.Map;
Expand Down

0 comments on commit 0e6650a

Please sign in to comment.