MCPcopy Create free account
hub / github.com/evant/android-retrolambda-lombok / addNormalization

Method addNormalization

src/main/lombok/ast/app/Main.java:325–336  ·  view source on GitHub ↗
(List<Operation<Object, Object>> list, ChainElement element)

Source from the content-addressed store, hash-verified

323 }
324
325 @SuppressWarnings("unchecked")
326 private void addNormalization(List<Operation<Object, Object>> list, ChainElement element) {
327 if (!element.hasSubtype()) return;
328 Operation<?, ?> operation = NORMALIZATION.get(element.toString());
329 if (operation == null) {
330 List<String> normalizations = Lists.newArrayList();
331 for (String n : NORMALIZATION.keySet()) if (n.startsWith(element.getType() + ":")) normalizations.add(n);
332 throw new IllegalArgumentException(String.format(
333 "Illegal normalization operation: %s. Valid normalizations: %s", element, Joiner.on(",").join(normalizations)));
334 }
335 list.add((Operation<Object, Object>) operation);
336 }
337
338 @SuppressWarnings("unchecked")
339 private List<Operation<Object, Object>> compile0(String program) {

Callers 1

compile0Method · 0.95

Calls 4

hasSubtypeMethod · 0.80
toStringMethod · 0.65
getMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected