File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
doma-processor/src/main/java/org/seasar/doma/internal/apt Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1515 */
1616package org .seasar .doma .internal .apt ;
1717
18+ import java .util .Objects ;
1819import javax .annotation .processing .ProcessingEnvironment ;
1920
2021public class ProcessingContext {
@@ -29,7 +30,7 @@ public class ProcessingContext {
2930 private Resources resources ;
3031
3132 public ProcessingContext (ProcessingEnvironment env ) {
32- this .env = env ;
33+ this .env = Objects . requireNonNull ( env ) ;
3334 }
3435
3536 public void init () {
Original file line number Diff line number Diff line change 2020import java .util .ArrayList ;
2121import java .util .List ;
2222import java .util .Map ;
23+ import java .util .Objects ;
2324import java .util .function .BiFunction ;
2425import java .util .function .Function ;
2526import java .util .stream .Collectors ;
@@ -68,7 +69,7 @@ public class Annotations {
6869 private final RoundContext ctx ;
6970
7071 public Annotations (RoundContext ctx ) {
71- this .ctx = ctx ;
72+ this .ctx = Objects . requireNonNull ( ctx ) ;
7273 }
7374
7475 public AggregateStrategyAnnot newAggregateStrategyAnnot (TypeElement typeElement ) {
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public class CtTypes {
122122 private final RoundContext ctx ;
123123
124124 public CtTypes (RoundContext ctx ) {
125- this .ctx = ctx ;
125+ this .ctx = Objects . requireNonNull ( ctx ) ;
126126 }
127127
128128 public AggregateStrategyCtType newAggregateStrategyCtType (TypeMirror type ) {
You can’t perform that action at this time.
0 commit comments