public ErrorProneFlags build() { return fromMap(flagsMap); } }
/** * Returns a new ErrorProneFlags object with the values of two ErrorProneFlags objects added * together. For flags that appear in both instances, the values in {@code other} override {@code * this}. */ @CheckReturnValue public ErrorProneFlags plus(ErrorProneFlags other) { Map<String, String> combinedMaps = new HashMap<>(this.getFlagsMap()); combinedMaps.putAll(other.getFlagsMap()); return ErrorProneFlags.fromMap(combinedMaps); }
ImmutableMap.copyOf(severities), ImmutableSet.copyOf(disabled), ErrorProneFlags.fromMap(flagsMap));
public ErrorProneFlags build() { return fromMap(flagsMap); } }
/** * Returns a new ErrorProneFlags object with the values of two ErrorProneFlags objects added * together. For flags that appear in both instances, the values in {@code other} override {@code * this}. */ @CheckReturnValue public ErrorProneFlags plus(ErrorProneFlags other) { Map<String, String> combinedMaps = new HashMap<>(this.getFlagsMap()); combinedMaps.putAll(other.getFlagsMap()); return ErrorProneFlags.fromMap(combinedMaps); }
ImmutableMap.copyOf(severities), ImmutableSet.copyOf(disabled), ErrorProneFlags.fromMap(flagsMap));