code
stringlengths
73
34.1k
label
stringclasses
1 value
@SuppressFBWarnings("ES_COMPARING_STRINGS_WITH_EQ") public String getDottedClassConstantOperand() { if (dottedClassConstantOperand != null) { assert dottedClassConstantOperand != NOT_AVAILABLE; return dottedClassConstantOperand; } if (classConstantOperand == NOT_AVAIL...
java
@Deprecated @SuppressFBWarnings("ES_COMPARING_STRINGS_WITH_EQ") public String getRefConstantOperand() { if (refConstantOperand == NOT_AVAILABLE) { throw new IllegalStateException("getRefConstantOperand called but value not available"); } if (refConstantOperand == null) { ...
java
public int getPrevOpcode(int offset) { if (offset < 0) { throw new IllegalArgumentException("offset (" + offset + ") must be nonnegative"); } if (offset >= prevOpcode.length || offset > sizePrevOpcodeBuffer) { return Const.NOP; } int pos = currentPosInPrev...
java
public void append(DetectorFactory factory) { if (!memberSet.contains(factory)) { throw new IllegalArgumentException("Detector " + factory.getFullName() + " appended to pass it doesn't belong to"); } this.orderedFactoryList.addLast(factory); }
java
public Set<DetectorFactory> getUnpositionedMembers() { HashSet<DetectorFactory> result = new HashSet<>(memberSet); result.removeAll(orderedFactoryList); return result; }
java
protected void mergeInto(FrameType other, FrameType result) throws DataflowAnalysisException { // Handle if result Frame or the other Frame is the special "TOP" value. if (result.isTop()) { // Result is the identity element, so copy the other Frame result.copyFrom(other); ...
java
public LockSet getFactAtLocation(Location location) throws DataflowAnalysisException { if (lockDataflow != null) { return lockDataflow.getFactAtLocation(location); } else { LockSet lockSet = cache.get(location); if (lockSet == null) { lockSet = new Loc...
java
public Object getMethodAnalysis(Class<?> analysisClass, MethodDescriptor methodDescriptor) { Map<MethodDescriptor, Object> objectMap = getObjectMap(analysisClass); return objectMap.get(methodDescriptor); }
java
public void purgeMethodAnalyses(MethodDescriptor methodDescriptor) { Set<Map.Entry<Class<?>, Map<MethodDescriptor, Object>>> entrySet = methodAnalysisObjectMap.entrySet(); for (Iterator<Map.Entry<Class<?>, Map<MethodDescriptor, Object>>> i = entrySet.iterator(); i.hasNext();) { Map.Entry<Cla...
java
public Method getMethod(MethodGen methodGen) { Method[] methodList = jclass.getMethods(); for (Method method : methodList) { if (method.getName().equals(methodGen.getName()) && method.getSignature().equals(methodGen.getSignature()) && method.getAccessFlags() == methodGen....
java
@CheckForNull static public BitSet getBytecodeSet(JavaClass clazz, Method method) { XMethod xmethod = XFactory.createXMethod(clazz, method); if (cachedBitsets().containsKey(xmethod)) { return cachedBitsets().get(xmethod); } Code code = method.getCode(); if (code ...
java
public ExceptionSet duplicate() { ExceptionSet dup = factory.createExceptionSet(); dup.exceptionSet.clear(); dup.exceptionSet.or(this.exceptionSet); dup.explicitSet.clear(); dup.explicitSet.or(this.explicitSet); dup.size = this.size; dup.universalHandler = this.un...
java
public boolean isSingleton(String exceptionName) { if (size != 1) { return false; } ObjectType e = iterator().next(); return e.toString().equals(exceptionName); }
java
public void add(ObjectType type, boolean explicit) { int index = factory.getIndexOfType(type); if (!exceptionSet.get(index)) { ++size; } exceptionSet.set(index); if (explicit) { explicitSet.set(index); } commonSupertype = null; }
java
public void addAll(ExceptionSet other) { exceptionSet.or(other.exceptionSet); explicitSet.or(other.explicitSet); size = countBits(exceptionSet); commonSupertype = null; }
java
public void clear() { exceptionSet.clear(); explicitSet.clear(); universalHandler = false; commonSupertype = null; size = 0; }
java
public boolean containsCheckedExceptions() throws ClassNotFoundException { for (ThrownExceptionIterator i = iterator(); i.hasNext();) { ObjectType type = i.next(); if (!Hierarchy.isUncheckedException(type)) { return true; } } return false; ...
java
public boolean containsExplicitExceptions() { for (ThrownExceptionIterator i = iterator(); i.hasNext();) { i.next(); if (i.isExplicit()) { return true; } } return false; }
java
public void fileReused(File f) { if (!recentFiles.contains(f)) { throw new IllegalStateException("Selected a recent project that doesn't exist?"); } else { recentFiles.remove(f); recentFiles.add(f); } }
java
public void fileNotFound(File f) { if (!recentFiles.contains(f)) { throw new IllegalStateException("Well no wonder it wasn't found, its not in the list."); } else { recentFiles.remove(f); } }
java
@Override public int compareTo(Edge other) { int cmp = super.compareTo(other); if (cmp != 0) { return cmp; } return type - other.type; }
java
public String formatAsString(boolean reverse) { BasicBlock source = getSource(); BasicBlock target = getTarget(); StringBuilder buf = new StringBuilder(); buf.append(reverse ? "REVERSE_EDGE(" : "EDGE("); buf.append(getLabel()); buf.append(") type "); buf.append(e...
java
public static @Type int stringToEdgeType(String s) { s = s.toUpperCase(Locale.ENGLISH); if ("FALL_THROUGH".equals(s)) { return FALL_THROUGH_EDGE; } else if ("IFCMP".equals(s)) { return IFCMP_EDGE; } else if ("SWITCH".equals(s)) { return SWITCH_EDG...
java
public boolean isSameOrNewerThan(JavaVersion other) { return this.major > other.major || (this.major == other.major && this.minor >= other.minor); }
java
public @CheckForNull TypeQualifierAnnotation getEffectiveTypeQualifierAnnotation() { boolean firstPartialResult = true; TypeQualifierAnnotation effective = null; for (PartialResult partialResult : partialResultList) { if (firstPartialResult) { effective = partial...
java
protected void clearCaches() { DescriptorFactory.clearInstance(); ObjectTypeFactory.clearInstance(); TypeQualifierApplications.clearInstance(); TypeQualifierAnnotation.clearInstance(); TypeQualifierValue.clearInstance(); // Make sure the codebases on the classpath are clo...
java
public static void registerBuiltInAnalysisEngines(IAnalysisCache analysisCache) { new edu.umd.cs.findbugs.classfile.engine.EngineRegistrar().registerAnalysisEngines(analysisCache); new edu.umd.cs.findbugs.classfile.engine.asm.EngineRegistrar().registerAnalysisEngines(analysisCache); new edu.umd....
java
public static void registerPluginAnalysisEngines(DetectorFactoryCollection detectorFactoryCollection, IAnalysisCache analysisCache) throws IOException { for (Iterator<Plugin> i = detectorFactoryCollection.pluginIterator(); i.hasNext();) { Plugin plugin = i.next(); Class<? ex...
java
private void buildClassPath() throws InterruptedException, IOException, CheckedAnalysisException { IClassPathBuilder builder = classFactory.createClassPathBuilder(bugReporter); { HashSet<String> seen = new HashSet<>(); for (String path : project.getFileArray()) { ...
java
private void configureAnalysisFeatures() { for (AnalysisFeatureSetting setting : analysisOptions.analysisFeatureSettingList) { setting.configure(AnalysisContext.currentAnalysisContext()); } AnalysisContext.currentAnalysisContext().setBoolProperty(AnalysisFeatures.MERGE_SIMILAR_WARNIN...
java
private void createExecutionPlan() throws OrderingConstraintException { executionPlan = new ExecutionPlan(); // Use user preferences to decide which detectors are enabled. DetectorFactoryChooser detectorFactoryChooser = new DetectorFactoryChooser() { HashSet<DetectorFactory> forcedE...
java
private void logRecoverableException(ClassDescriptor classDescriptor, Detector2 detector, Throwable e) { bugReporter.logError( "Exception analyzing " + classDescriptor.toDottedClassName() + " using detector " + detector.getDetectorClassName(), e); }
java
public static <E> Set<E> newSetFromMap(Map<E, Boolean> m) { return new SetFromMap<>(m); }
java
protected VertexType getNextSearchTreeRoot() { // FIXME: slow linear search, should improve for (Iterator<VertexType> i = graph.vertexIterator(); i.hasNext();) { VertexType vertex = i.next(); if (visitMe(vertex)) { return vertex; } } re...
java
private void classifyUnknownEdges() { Iterator<EdgeType> edgeIter = graph.edgeIterator(); while (edgeIter.hasNext()) { EdgeType edge = edgeIter.next(); int dfsEdgeType = getDFSEdgeType(edge); if (dfsEdgeType == UNKNOWN_EDGE) { int srcDiscoveryTime = ge...
java
protected void consumeStack(Instruction ins) { ConstantPoolGen cpg = getCPG(); TypeFrame frame = getFrame(); int numWordsConsumed = ins.consumeStack(cpg); if (numWordsConsumed == Const.UNPREDICTABLE) { throw new InvalidBytecodeException("Unpredictable stack consumption for "...
java
protected void pushReturnType(InvokeInstruction ins) { ConstantPoolGen cpg = getCPG(); Type type = ins.getType(cpg); if (type.getType() != Const.T_VOID) { pushValue(type); } }
java
@Override public void modelNormalInstruction(Instruction ins, int numWordsConsumed, int numWordsProduced) { if (VERIFY_INTEGRITY) { if (numWordsProduced > 0) { throw new InvalidBytecodeException("missing visitor method for " + ins); } } super.modelNorm...
java
private Iterator<Edge> logicalPredecessorEdgeIterator(BasicBlock block) { return isForwards ? cfg.incomingEdgeIterator(block) : cfg.outgoingEdgeIterator(block); }
java
private int stackEntryThatMustBeNonnegative(int seen) { switch (seen) { case Const.INVOKEINTERFACE: if ("java/util/List".equals(getClassConstantOperand())) { return getStackEntryOfListCallThatMustBeNonnegative(); } break; case Const.INVOKEVIRTU...
java
private void flush() { if (pendingAbsoluteValueBug != null) { absoluteValueAccumulator.accumulateBug(pendingAbsoluteValueBug, pendingAbsoluteValueBugSourceLine); pendingAbsoluteValueBug = null; pendingAbsoluteValueBugSourceLine = null; } accumulator.reportAcc...
java
public boolean isNullCheck() { // Null check blocks must be exception throwers, // and are always empty. (The only kind of non-empty // exception throwing block is one terminated by an ATHROW). if (!isExceptionThrower() || getFirstInstruction() != null) { return false; ...
java
public @CheckForNull InstructionHandle getSuccessorOf(InstructionHandle handle) { if (VERIFY_INTEGRITY && !containsInstruction(handle)) { throw new IllegalStateException(); } return handle == lastInstruction ? null : handle.getNext(); }
java
public InstructionHandle getPredecessorOf(InstructionHandle handle) { if (VERIFY_INTEGRITY && !containsInstruction(handle)) { throw new IllegalStateException(); } return handle == firstInstruction ? null : handle.getPrev(); }
java
public void addInstruction(InstructionHandle handle) { if (firstInstruction == null) { firstInstruction = lastInstruction = handle; } else { if (VERIFY_INTEGRITY && handle != lastInstruction.getNext()) { throw new IllegalStateException("Adding non-consecutive inst...
java
public boolean containsInstruction(InstructionHandle handle) { Iterator<InstructionHandle> i = instructionIterator(); while (i.hasNext()) { if (i.next() == handle) { return true; } } return false; }
java
public boolean containsInstructionWithOffset(int offset) { Iterator<InstructionHandle> i = instructionIterator(); while (i.hasNext()) { if (i.next().getPosition() == offset) { return true; } } return false; }
java
public static void writeFile(IFile file, final FileOutput output, IProgressMonitor monitor) throws CoreException { try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); output.writeFile(bos); ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); ...
java
public static void writeFile(final File file, final FileOutput output, final IProgressMonitor monitor) throws CoreException { try (FileOutputStream fout = new FileOutputStream(file); BufferedOutputStream bout = new BufferedOutputStream(fout)) { if (monitor != null) { ...
java
public static void createMarkers(final IJavaProject javaProject, final SortedBugCollection theCollection, final ISchedulingRule rule, IProgressMonitor monitor) { if (monitor.isCanceled()) { return; } final List<MarkerParameter> bugParameters = createBugParameters(javaProject, theColl...
java
public static List<MarkerParameter> createBugParameters(IJavaProject project, BugCollection theCollection, IProgressMonitor monitor) { List<MarkerParameter> bugParameters = new ArrayList<>(); if (project == null) { FindbugsPlugin.getDefault().logException(new NullPointerException...
java
public static void removeMarkers(IResource res) throws CoreException { // remove any markers added by our builder // This triggers resource update on IResourceChangeListener's // (BugTreeView) res.deleteMarkers(FindBugsMarker.NAME, true, IResource.DEPTH_INFINITE); if (res instanc...
java
public static void redisplayMarkers(final IJavaProject javaProject) { final IProject project = javaProject.getProject(); FindBugsJob job = new FindBugsJob("Refreshing SpotBugs markers", project) { @Override protected void runWithProgress(IProgressMonitor monitor) throws CoreExcep...
java
public static @CheckForNull BugInstance findBugInstanceForMarker(IMarker marker) { BugCollectionAndInstance bci = findBugCollectionAndInstanceForMarker(marker); if (bci == null) { return null; } return bci.bugInstance; }
java
public static @CheckForNull BugCollectionAndInstance findBugCollectionAndInstanceForMarker(IMarker marker) { IResource resource = marker.getResource(); IProject project = resource.getProject(); if (project == null) { // Also shouldn't happen. FindbugsPlugin.getDefaul...
java
public static Set<IMarker> getMarkerFromSelection(ISelection selection) { Set<IMarker> markers = new HashSet<>(); if (!(selection instanceof IStructuredSelection)) { return markers; } IStructuredSelection sSelection = (IStructuredSelection) selection; for (Iterator<?>...
java
public static IMarker getMarkerFromEditor(ITextSelection selection, IEditorPart editor) { IResource resource = (IResource) editor.getEditorInput().getAdapter(IFile.class); IMarker[] allMarkers; if (resource != null) { allMarkers = getMarkers(resource, IResource.DEPTH_ZERO); }...
java
@Nonnull public static IMarker[] getMarkers(IResource fileOrFolder, int depth) { if(fileOrFolder.getType() == IResource.PROJECT) { if(!fileOrFolder.isAccessible()) { // user just closed the project decorator is working on, avoid exception here return EMPTY; ...
java
private void syncMenu() { if (bugInstance != null) { BugProperty severityProperty = bugInstance.lookupProperty(BugProperty.SEVERITY); if (severityProperty != null) { try { int severity = severityProperty.getValueAsInt(); if (severit...
java
private void selectSeverity(int severity) { // Severity is 1-based, but the menu item list is 0-based int index = severity - 1; for (int i = 0; i < severityItemList.length; ++i) { MenuItem menuItem = severityItemList[i]; menuItem.setEnabled(true); menuItem.se...
java
private void resetMenuItems(boolean enable) { for (int i = 0; i < severityItemList.length; ++i) { MenuItem menuItem = severityItemList[i]; menuItem.setEnabled(enable); menuItem.setSelection(false); } }
java
public ValueNumber[] lookupOutputValues(Entry entry) { if (DEBUG) { System.out.println("VN cache lookup: " + entry); } ValueNumber[] result = entryToOutputMap.get(entry); if (DEBUG) { System.out.println(" result ==> " + Arrays.toString(result)); } ...
java
public Binding lookup(String varName) { if (varName.equals(binding.getVarName())) { return binding; } return parent != null ? parent.lookup(varName) : null; }
java
private IsNullValueFrame replaceValues(IsNullValueFrame origFrame, IsNullValueFrame frame, ValueNumber replaceMe, ValueNumberFrame prevVnaFrame, ValueNumberFrame targetVnaFrame, IsNullValue replacementValue) { if (!targetVnaFrame.isValid()) { throw new IllegalArgumentException("Invalid ...
java
protected void obtainFindBugsMarkers() { // Delete old markers markers.clear(); if (editor == null || ruler == null) { return; } // Obtain all markers in the editor IResource resource = (IResource) editor.getEditorInput().getAdapter(IFile.class); if(r...
java
protected boolean includesRulerLine(Position position, IDocument document) { if (position != null && ruler != null) { try { int markerLine = document.getLineOfOffset(position.getOffset()); int line = ruler.getLineOfLastMouseButtonActivity(); if (line =...
java
@CheckForNull protected AbstractMarkerAnnotationModel getModel() { if(editor == null) { return null; } IDocumentProvider provider = editor.getDocumentProvider(); IAnnotationModel model = provider.getAnnotationModel(editor.getEditorInput()); if (model instanceof Ab...
java
protected IDocument getDocument() { Assert.isNotNull(editor); IDocumentProvider provider = editor.getDocumentProvider(); return provider.getDocument(editor.getEditorInput()); }
java
public void setProjectChanged(boolean b) { if (curProject == null) { return; } if (projectChanged == b) { return; } projectChanged = b; mainFrameMenu.setSaveMenu(this); getRootPane().putClientProperty(WINDOW_MODIFIED, b); }
java
void callOnClose() { if (projectChanged && !SystemProperties.getBoolean("findbugs.skipSaveChangesWarning")) { Object[] options = { L10N.getLocalString("dlg.save_btn", "Save"), L10N.getLocalString("dlg.dontsave_btn", "Don't Save"), L10N.getL...
java
public boolean openAnalysis(File f, SaveType saveType) { if (!f.exists() || !f.canRead()) { throw new IllegalArgumentException("Can't read " + f.getPath()); } mainFrameLoadSaveHelper.prepareForFileLoad(f, saveType); mainFrameLoadSaveHelper.loadAnalysis(f); return tr...
java
public void updateTitle() { Project project = getProject(); String name = project.getProjectName(); if ((name == null || "".equals(name.trim())) && saveFile != null) { name = saveFile.getAbsolutePath(); } if (name == null) { name = "";//Project.UNNAMED_PRO...
java
public void loadProject(String arg) throws IOException { Project newProject = Project.readProject(arg); newProject.setConfiguration(project.getConfiguration()); project = newProject; projectLoadedFromFile = true; }
java
public void execute() { Iterator<?> elementIter = XMLUtil.selectNodes(document, "/BugCollection/BugInstance").iterator(); Iterator<BugInstance> bugInstanceIter = bugCollection.iterator(); Set<String> bugTypeSet = new HashSet<>(); Set<String> bugCategorySet = new HashSet<>(); Set...
java
private void addBugCategories(Set<String> bugCategorySet) { Element root = document.getRootElement(); for (String category : bugCategorySet) { Element element = root.addElement("BugCategory"); element.addAttribute("category", category); Element description = element.a...
java
private void addBugCodes(Set<String> bugCodeSet) { Element root = document.getRootElement(); for (String bugCode : bugCodeSet) { Element element = root.addElement("BugCode"); element.addAttribute("abbrev", bugCode); Element description = element.addElement("Descriptio...
java
public static Constant merge(Constant a, Constant b) { if (!a.isConstant() || !b.isConstant()) { return NOT_CONSTANT; } if (a.value.getClass() != b.value.getClass() || !a.value.equals(b.value)) { return NOT_CONSTANT; } return a; }
java
private void createBugCategoriesGroup(Composite parent, final IProject project) { Group checkBoxGroup = new Group(parent, SWT.SHADOW_ETCHED_OUT); checkBoxGroup.setText(getMessage("property.categoriesGroup")); checkBoxGroup.setLayout(new GridLayout(1, true)); checkBoxGroup.setLayoutData(n...
java
protected void syncSelectedCategories() { ProjectFilterSettings filterSettings = getCurrentProps().getFilterSettings(); for (Button checkBox : chkEnableBugCategoryList) { String category = (String) checkBox.getData(); if (checkBox.getSelection()) { filterSettings....
java
@SlashedClassName @SuppressFBWarnings("TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK") public static String toSlashedClassName(@SlashedClassName(when = When.UNKNOWN) String className) { if (className.indexOf('.') >= 0) { return className.replace('.', '/'); } return cla...
java
@DottedClassName @SuppressFBWarnings("TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK") public static String toDottedClassName(@SlashedClassName(when = When.UNKNOWN) String className) { if (className.indexOf('/') >= 0) { return className.replace('/', '.'); } return classN...
java
public static boolean isAnonymous(String className) { int i = className.lastIndexOf('$'); if (i >= 0 && ++i < className.length()) { while(i < className.length()) { if(!Character.isDigit(className.charAt(i))) { return false; } ...
java
public static @SlashedClassName String extractClassName(String originalName) { String name = originalName; if (name.charAt(0) != '[' && name.charAt(name.length() - 1) != ';') { return name; } while (name.charAt(0) == '[') { name = name.substring(1); } ...
java
public static @CheckForNull TypeQualifierAnnotation combineReturnTypeAnnotations(TypeQualifierAnnotation a, TypeQualifierAnnotation b) { return combineAnnotations(a, b, combineReturnValueMatrix); }
java
public final @DottedClassName String getPackageName() { int lastDot = className.lastIndexOf('.'); if (lastDot < 0) { return ""; } else { return className.substring(0, lastDot); } }
java
protected static String removePackageName(String typeName) { int index = typeName.lastIndexOf('.'); if (index >= 0) { typeName = typeName.substring(index + 1); } return typeName; }
java
public void downgradeOnControlSplit() { final int numSlots = getNumSlots(); for (int i = 0; i < numSlots; ++i) { IsNullValue value = getValue(i); value = value.downgradeOnControlSplit(); setValue(i, value); } if (knownValueMap != null) { f...
java
public static void printCode(Method[] methods) { for (Method m : methods) { System.out.println(m); Code code = m.getCode(); if (code != null) { System.out.println(code); } } }
java
protected boolean isReferenceType(byte type) { return type == Const.T_OBJECT || type == Const.T_ARRAY || type == T_NULL || type == T_EXCEPTION; }
java
protected ReferenceType mergeReferenceTypes(ReferenceType aRef, ReferenceType bRef) throws DataflowAnalysisException { if (aRef.equals(bRef)) { return aRef; } byte aType = aRef.getType(); byte bType = bRef.getType(); try { // Special case: ExceptionObjectT...
java
public void read() { File prefFile = new File(SystemProperties.getProperty("user.home"), PREF_FILE_NAME); if (!prefFile.exists() || !prefFile.isFile()) { return; } try { read(new FileInputStream(prefFile)); } catch (IOException e) { // Ignore -...
java
public void write() { try { File prefFile = new File(SystemProperties.getProperty("user.home"), PREF_FILE_NAME); write(new FileOutputStream(prefFile)); } catch (IOException e) { if (FindBugs.DEBUG) { e.printStackTrace(); // Ignore } ...
java
public void useProject(String projectName) { removeProject(projectName); recentProjectsList.addFirst(projectName); while (recentProjectsList.size() > MAX_RECENT_FILES) { recentProjectsList.removeLast(); } }
java
public void removeProject(String projectName) { // It should only be in list once (usually in slot 0) but check entire // list... Iterator<String> it = recentProjectsList.iterator(); while (it.hasNext()) { // LinkedList, so remove() via iterator is faster than // ...
java
public void enableAllDetectors(boolean enable) { detectorEnablementMap.clear(); Collection<Plugin> allPlugins = Plugin.getAllPlugins(); for (Plugin plugin : allPlugins) { for (DetectorFactory factory : plugin.getDetectorFactories()) { detectorEnablementMap.put(factor...
java
private static Map<String, Boolean> readProperties(Properties props, String keyPrefix) { Map<String, Boolean> filters = new TreeMap<>(); int counter = 0; boolean keyFound = true; while (keyFound) { String property = props.getProperty(keyPrefix + counter); if (prop...
java
private static void writeProperties(Properties props, String keyPrefix, Map<String, Boolean> filters) { int counter = 0; Set<Entry<String, Boolean>> entrySet = filters.entrySet(); for (Entry<String, Boolean> entry : entrySet) { props.setProperty(keyPrefix + counter, entry.getKey() + ...
java
public AnalysisFeatureSetting[] getAnalysisFeatureSettings() { if (EFFORT_DEFAULT.equals(effort)) { return FindBugs.DEFAULT_EFFORT; } else if (EFFORT_MIN.equals(effort)) { return FindBugs.MIN_EFFORT; } return FindBugs.MAX_EFFORT; }
java
public JavaClass parse() throws IOException { JavaClass jclass = classParser.parse(); Repository.addClass(jclass); return jclass; }
java
void setSourceBaseList(Iterable<String> sourceBaseList) { for (String repos : sourceBaseList) { if (repos.endsWith(".zip") || repos.endsWith(".jar") || repos.endsWith(".z0p.gz")) { // Zip or jar archive try { if (repos.startsWith("http:") || repos....
java