public static boolean isStraightGenericMap(ClassDescriptor c) { if (c.matches(Map.class)) { return true; } XClass xc; try { xc = c.getXClass(); } catch (CheckedAnalysisException e) { return false; } String sourceSignature = xc.getSourceSignature(); if (sourceSignature == null) { return false; } if (sourceSignature.startsWith("<")) { Matcher matcher = mapSignaturePattern.matcher(sourceSignature); if (!matcher.matches()) { if (DEBUG) { System.out.println(c + " has a complex generic signature: " + sourceSignature); } // See Bug3470297 and Bug3470297a examples return false; } } return true; }
XClass xclass = Global.getAnalysisCache().getClassAnalysis(XClass.class, operandClass); String sig = xclass.getSourceSignature(); if (sig == null) { return false;
public static boolean isStraightGenericMap(ClassDescriptor c) { if (c.matches(Map.class)) { return true; } XClass xc; try { xc = c.getXClass(); } catch (CheckedAnalysisException e) { return false; } String sourceSignature = xc.getSourceSignature(); if (sourceSignature == null) { return false; } if (sourceSignature.startsWith("<")) { Matcher matcher = mapSignaturePattern.matcher(sourceSignature); if (!matcher.matches()) { if (DEBUG) { System.out.println(c + " has a complex generic signature: " + sourceSignature); } // See Bug3470297 and Bug3470297a examples return false; } } return true; }
XClass xclass = Global.getAnalysisCache().getClassAnalysis(XClass.class, operandClass); String sig = xclass.getSourceSignature(); if (sig == null) { return false;