daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Feb 25th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Inject
  2. public void setDataGroups(@Named(DATA_GROUPS) Optional<Set<DataGroup>>
  3. dataGroups) {
  4. this.dataGroups = dataGroups;
  5. }
  6.    
  7. Optional<Set<DataGroup>> dataGroups = Optional.of((new HashSet<DataGroup>());
  8.     bind(new TypeLiteral<Optional<Set<DataGroup>>>() {
  9.  
  10.     }).toInstance(dataGroups);
  11.    
  12. com.google.inject.internal.util.$ComputationException: java.lang.ArrayIndexOutOfBoundsException
  13.    
  14. @Inject
  15. public void setDataGroups(@Named(DATA_GROUPS) Optional<List<DataGroup>>
  16. dataGroups) {
  17. this.dataGroups = dataGroups;
  18. }
  19.    
  20. Optional<List<DataGroup>> dataGroups = Optional.of(new ArrayList<DataGroups>());
  21. bind(new TypeLiteral<Optional<List<DataGroup>>>() {
  22. }).toInstance(dataGroups);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top