code
stringlengths
73
34.1k
label
stringclasses
1 value
@Override public void draw(Canvas canvas, Projection pj) { if (mIcon == null) return; if (mPosition == null) return; pj.toPixels(mPosition, mPositionPixels); int width = mIcon.getIntrinsicWidth(); int height = mIcon.getIntrinsicHeight(); Rect ...
java
public double getX01FromLongitude(double longitude, boolean wrapEnabled) { longitude = wrapEnabled ? Clip(longitude, getMinLongitude(), getMaxLongitude()) : longitude; final double result = getX01FromLongitude(longitude); return wrapEnabled ? Clip(result, 0, 1) : result; }
java
public double getY01FromLatitude(double latitude, boolean wrapEnabled) { latitude = wrapEnabled ? Clip(latitude, getMinLatitude(), getMaxLatitude()) : latitude; final double result = getY01FromLatitude(latitude); return wrapEnabled ? Clip(result, 0, 1) : result; }
java
public void open(Object object, GeoPoint position, int offsetX, int offsetY) { close(); //if it was already opened mRelatedObject = object; mPosition = position; mOffsetX = offsetX; mOffsetY = offsetY; onOpen(object); MapView.LayoutParams lp = new MapView.LayoutPa...
java
public void close() { if (mIsVisible) { mIsVisible = false; ((ViewGroup) mView.getParent()).removeView(mView); onClose(); } }
java
public void onDetach() { close(); if (mView != null) mView.setTag(null); mView = null; mMapView = null; if (Configuration.getInstance().isDebugMode()) Log.d(IMapView.LOGTAG, "Marked detached"); }
java
public static void closeAllInfoWindowsOn(MapView mapView) { ArrayList<InfoWindow> opened = getOpenedInfoWindowsOn(mapView); for (InfoWindow infoWindow : opened) { infoWindow.close(); } }
java
public static ArrayList<InfoWindow> getOpenedInfoWindowsOn(MapView mapView) { int count = mapView.getChildCount(); ArrayList<InfoWindow> opened = new ArrayList<InfoWindow>(count); for (int i = 0; i < count; i++) { final View child = mapView.getChildAt(i); Object tag = chi...
java
private MilestoneManager getHalfKilometerManager() { final Path arrowPath = new Path(); // a simple arrow towards the right arrowPath.moveTo(-5, -5); arrowPath.lineTo(5, 0); arrowPath.lineTo(-5, 5); arrowPath.close(); final Paint backgroundPaint = getFillPaint(COLOR_BACKG...
java
public Point toWgs84(Point point) { if (projection != null) { point = toWgs84.transform(point); } return point; }
java
public Point toProjection(Point point) { if (projection != null) { point = fromWgs84.transform(point); } return point; }
java
public static Polyline addPolylineToMap(MapView map, Polyline polyline) { if (polyline.getInfoWindow()==null) polyline.setInfoWindow(new BasicInfoWindow(R.layout.bonuspack_bubble, map)); map.getOverlayManager().add(polyline); return polylin...
java
public synchronized void close() throws IOException { if (journalWriter == null) { return; // Already closed. } for (Entry entry : new ArrayList<Entry>(lruEntries.values())) { if (entry.currentEditor != null) { entry.currentEditor.abort(); } } trimToSize(); journalWrite...
java
protected boolean isSOFnMarker(int marker) { if (marker <= 0xC3 && marker >= 0xC0) { return true; } if (marker <= 0xCB && marker >= 0xC5) { return true; } if (marker <= 0xCF && marker >= 0xCD) { return true; } re...
java
protected void writeFull() { byte[] imageData = rawImage.getData(); int numOfComponents = frameHeader.getNf(); int[] pixes = new int[numOfComponents * DCTSIZE2]; int blockIndex = 0; int startCoordinate = 0, scanlineStride = numOfComponents * rawImage.getWidth(), row = 0; ...
java
public int getValueId(Clusterable c) { currentItems++; /* * if(isLeafNode()) { return id; } */ int index = TreeUtils.findNearestNodeIndex(subNodes, c); if (index >= 0) { KMeansTreeNode node = subNodes.get(index); return node.getValueId(c); } return id; }
java
public static Node cloneNode(Node node) { if(node == null) { return null; } IIOMetadataNode newNode = new IIOMetadataNode(node.getNodeName()); //clone user object if(node instanceof IIOMetadataNode) { IIOMetadataNode iioNode = (IIOMetadataNode)nod...
java
protected Cluster[] calculateInitialClusters(List<? extends Clusterable> values, int numClusters){ Cluster[] clusters = new Cluster[numClusters]; //choose centers and create the initial clusters Random random = new Random(1); Set<Integer> clusterCenters = new HashSet<Integer>(); ...
java
public float[] getClusterMean(){ float[] normedCurrentLocation = new float[mCurrentMeanLocation.length]; for ( int i = 0; i < mCurrentMeanLocation.length; i++ ){ normedCurrentLocation[i] = mCurrentMeanLocation[i]/((float)mClusterItems.size()); } return normedCurrentLocation; ...
java
private void setItem(int index, Timepoint time) { time = roundToValidTime(time, index); mCurrentTime = time; reselectSelector(time, false, index); }
java
private boolean isHourInnerCircle(int hourOfDay) { // We'll have the 00 hours on the outside circle. boolean isMorning = hourOfDay <= 12 && hourOfDay != 0; // In the version 2 layout the circles are swapped if (mController.getVersion() != TimePickerDialog.Version.VERSION_1) isMorning = !...
java
private int getCurrentlyShowingValue() { int currentIndex = getCurrentItemShowing(); switch(currentIndex) { case HOUR_INDEX: return mCurrentTime.getHour(); case MINUTE_INDEX: return mCurrentTime.getMinute(); case SECOND_INDEX: ...
java
private Timepoint roundToValidTime(Timepoint newSelection, int currentItemShowing) { switch(currentItemShowing) { case HOUR_INDEX: return mController.roundToNearest(newSelection, null); case MINUTE_INDEX: return mController.roundToNearest(newSelection, Tim...
java
public boolean trySettingInputEnabled(boolean inputEnabled) { if (mDoingTouch && !inputEnabled) { // If we're trying to disable input, but we're in the middle of a touch event, // we'll allow the touch event to continue before disabling input. return false; } ...
java
public static ObjectAnimator getPulseAnimator(View labelToAnimate, float decreaseRatio, float increaseRatio) { Keyframe k0 = Keyframe.ofFloat(0f, 1f); Keyframe k1 = Keyframe.ofFloat(0.275f, decreaseRatio); Keyframe k2 = Keyframe.ofFloat(0.69f, increaseRatio); Keyframe k3 = Ke...
java
public static Calendar trimToMidnight(Calendar calendar) { calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); return calendar; }
java
@SuppressWarnings("unused") public static DatePickerDialog newInstance(OnDateSetListener callback) { Calendar now = Calendar.getInstance(); return DatePickerDialog.newInstance(callback, now); }
java
@SuppressWarnings("unused") public void setHighlightedDays(Calendar[] highlightedDays) { for (Calendar highlightedDay : highlightedDays) { this.highlightedDays.add(Utils.trimToMidnight((Calendar) highlightedDay.clone())); } if (mDayPickerView != null) mDayPickerView.onChange(); ...
java
@SuppressWarnings("DeprecatedIsStillUsed") @Deprecated public void setTimeZone(TimeZone timeZone) { mTimezone = timeZone; mCalendar.setTimeZone(timeZone); YEAR_FORMAT.setTimeZone(timeZone); MONTH_FORMAT.setTimeZone(timeZone); DAY_FORMAT.setTimeZone(timeZone); }
java
public void setLocale(Locale locale) { mLocale = locale; mWeekStart = Calendar.getInstance(mTimezone, mLocale).getFirstDayOfWeek(); YEAR_FORMAT = new SimpleDateFormat("yyyy", locale); MONTH_FORMAT = new SimpleDateFormat("MMM", locale); DAY_FORMAT = new SimpleDateFormat("dd", loca...
java
public void start() { if (hasVibratePermission(mContext)) { mVibrator = (Vibrator) mContext.getSystemService(Service.VIBRATOR_SERVICE); } // Setup a listener for changes in haptic feedback settings mIsGloballyEnabled = checkGlobalSetting(mContext); Uri uri = Settings...
java
private boolean hasVibratePermission(Context context) { PackageManager pm = context.getPackageManager(); int hasPerm = pm.checkPermission(android.Manifest.permission.VIBRATE, context.getPackageName()); return hasPerm == PackageManager.PERMISSION_GRANTED; }
java
@SuppressWarnings("SameParameterValue") public static TimePickerDialog newInstance(OnTimeSetListener callback, int hourOfDay, int minute, int second, boolean is24HourMode) { TimePickerDialog ret = new TimePickerDialog(); ret.initialize(callback, hourOfDay, minute, second, is24HourMode); ...
java
public static TimePickerDialog newInstance(OnTimeSetListener callback, int hourOfDay, int minute, boolean is24HourMode) { return TimePickerDialog.newInstance(callback, hourOfDay, minute, 0, is24HourMode); }
java
@SuppressWarnings({"unused", "SameParameterValue"}) public static TimePickerDialog newInstance(OnTimeSetListener callback, boolean is24HourMode) { Calendar now = Calendar.getInstance(); return TimePickerDialog.newInstance(callback, now.get(Calendar.HOUR_OF_DAY), now.get(Calendar.MINUTE), is24HourMod...
java
private boolean processKeyUp(int keyCode) { if (keyCode == KeyEvent.KEYCODE_TAB) { if(mInKbMode) { if (isTypedTimeFullyLegal()) { finishKbMode(true); } return true; } } else if (keyCode == KeyEvent.KEYCODE_ENTER)...
java
public void setMonthParams(int selectedDay, int year, int month, int weekStart) { if (month == -1 && year == -1) { throw new InvalidParameterException("You must specify month and year for this view"); } mSelectedDay = selectedDay; // Allocate space for caching the day numbe...
java
public int getDayFromLocation(float x, float y) { final int day = getInternalDayFromLocation(x, y); if (day < 1 || day > mNumCells) { return -1; } return day; }
java
protected int getInternalDayFromLocation(float x, float y) { int dayStart = mEdgePadding; if (x < dayStart || x > mWidth - mEdgePadding) { return -1; } // Selection is (x - start) / (pixels/day) == (x -s) * day / pixels int row = (int) (y - getMonthHeaderSize()) / mRo...
java
private String getWeekDayLabel(Calendar day) { Locale locale = mController.getLocale(); // Localised short version of the string is not available on API < 18 if (Build.VERSION.SDK_INT < 18) { String dayName = new SimpleDateFormat("E", locale).format(day.getTime()); Strin...
java
private void calculateGridSizes(float numbersRadius, float xCenter, float yCenter, float textSize, float[] textGridHeights, float[] textGridWidths) { /* * The numbers need to be drawn in a 7x7 grid, representing the points on the Unit Circle. */ float offset1 = numbersRadiu...
java
private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, float[] textGridWidths, float[] textGridHeights) { mPaint.setTextSize(textSize); mPaint.setTypeface(typeface); Paint[] textPaints = assignTextColors(texts); canvas.drawText(texts[0], text...
java
public void setSelection(int selectionDegrees, boolean isInnerCircle, boolean forceDrawDot) { mSelectionDegrees = selectionDegrees; mSelectionRadians = selectionDegrees * Math.PI / 180; mForceDrawDot = forceDrawDot; if (mHasInnerCircle) { if (isInnerCircle) { ...
java
protected void setUpRecyclerView(DatePickerDialog.ScrollOrientation scrollOrientation) { setVerticalScrollBarEnabled(false); setFadingEdgeLength(0); int gravity = scrollOrientation == DatePickerDialog.ScrollOrientation.VERTICAL ? Gravity.TOP : Gravity.START; ...
java
@Override public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) { // Clear the event's current text so that only the current date will be spoken. event.getText().clear(); int...
java
public int getIsTouchingAmOrPm(float xCoord, float yCoord) { if (!mDrawValuesReady) { return -1; } int squaredYDistance = (int) ((yCoord - mAmPmYCenter)*(yCoord - mAmPmYCenter)); int distanceToAmCenter = (int) Math.sqrt((xCoord - mAmXCenter)*(xCoord - mAmXCe...
java
public void setExcludeFilter(File filterFile) { if (filterFile != null && filterFile.length() > 0) { excludeFile = filterFile; } else { if (filterFile != null) { log("Warning: exclude filter file " + filterFile + (filterFile.exists() ? " is...
java
public void setIncludeFilter(File filterFile) { if (filterFile != null && filterFile.length() > 0) { includeFile = filterFile; } else { if (filterFile != null) { log("Warning: include filter file " + filterFile + (filterFile.exists() ? " is...
java
public void setBaselineBugs(File baselineBugs) { if (baselineBugs != null && baselineBugs.length() > 0) { this.baselineBugs = baselineBugs; } else { if (baselineBugs != null) { log("Warning: baseline bugs file " + baselineBugs + (baselineBu...
java
public void setAuxClasspath(Path src) { boolean nonEmpty = false; String[] elementList = src.list(); for (String anElementList : elementList) { if (!"".equals(anElementList)) { nonEmpty = true; break; } } if (nonEmpty) { ...
java
public void setAuxClasspathRef(Reference r) { Path path = createAuxClasspath(); path.setRefid(r); path.toString(); // Evaluated for its side-effects (throwing a // BuildException) }
java
public void setAuxAnalyzepath(Path src) { boolean nonEmpty = false; String[] elementList = src.list(); for (String anElementList : elementList) { if (!"".equals(anElementList)) { nonEmpty = true; break; } } if (nonEmpty) {...
java
public void setSourcePath(Path src) { if (sourcePath == null) { sourcePath = src; } else { sourcePath.append(src); } }
java
public void setExcludePath(Path src) { if (excludePath == null) { excludePath = src; } else { excludePath.append(src); } }
java
public void setIncludePath(Path src) { if (includePath == null) { includePath = src; } else { includePath.append(src); } }
java
@Override protected void checkParameters() { super.checkParameters(); if (projectFile == null && classLocations.size() == 0 && filesets.size() == 0 && dirsets.size() == 0 && auxAnalyzepath == null) { throw new BuildException("either projectfile, <class/>, <fileset/> or <auxAnalyzepath/>...
java
static boolean isEclipsePluginDisabled(String pluginId, Map<URI, Plugin> allPlugins) { for (Plugin plugin : allPlugins.values()) { if(pluginId.equals(plugin.getPluginId())) { return false; } } return true; }
java
public static <Fact, AnalysisType extends BasicAbstractDataflowAnalysis<Fact>> void printCFG( Dataflow<Fact, AnalysisType> dataflow, PrintStream out) { DataflowCFGPrinter<Fact, AnalysisType> printer = new DataflowCFGPrinter<>(dataflow); printer.print(out); }
java
private void fillMenu() { isBugItem = new MenuItem(menu, SWT.RADIO); isBugItem.setText("Bug"); notBugItem = new MenuItem(menu, SWT.RADIO); notBugItem.setText("Not Bug"); isBugItem.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) ...
java
private void syncMenu() { if (bugInstance != null) { isBugItem.setEnabled(true); notBugItem.setEnabled(true); BugProperty isBugProperty = bugInstance.lookupProperty(BugProperty.IS_BUG); if (isBugProperty == null) { // Unclassified ...
java
public PatternMatcher execute() throws DataflowAnalysisException { workList.addLast(cfg.getEntry()); while (!workList.isEmpty()) { BasicBlock basicBlock = workList.removeLast(); visitedBlockMap.put(basicBlock, basicBlock); // Scan instructions of basic block for pos...
java
private void attemptMatch(BasicBlock basicBlock, BasicBlock.InstructionIterator instructionIterator) throws DataflowAnalysisException { work(new State(basicBlock, instructionIterator, pattern.getFirst())); }
java
public static final String getString(Type type) { if (type instanceof GenericObjectType) { return ((GenericObjectType) type).toString(true); } else if (type instanceof ArrayType) { return TypeCategory.asString((ArrayType) type); } else { return type.toString()...
java
private boolean askToSave() { if (mainFrame.isProjectChanged()) { int response = JOptionPane.showConfirmDialog(mainFrame, L10N.getLocalString("dlg.save_current_changes", "The current project has been changed, Save current changes?"), L10N.getLocalString("dlg.save_changes", ...
java
SaveReturn saveAnalysis(final File f) { Future<Object> waiter = mainFrame.getBackgroundExecutor().submit(() -> { BugSaver.saveBugs(f, mainFrame.getBugCollection(), mainFrame.getProject()); return null; }); try { waiter.get(); } catch (InterruptedExcep...
java
public String getClassPath() { StringBuilder buf = new StringBuilder(); for (Entry entry : entryList) { if (buf.length() > 0) { buf.append(File.pathSeparator); } buf.append(entry.getURL()); } return buf.toString(); }
java
private InputStream getInputStreamForResource(String resourceName) { // Try each classpath entry, in order, until we find one // that has the resource. Catch and ignore IOExceptions. // FIXME: The following code should throw IOException. // // URL.openStream() does not seem to ...
java
public JavaClass lookupClass(String className) throws ClassNotFoundException { if (classesThatCantBeFound.contains(className)) { throw new ClassNotFoundException("Error while looking for class " + className + ": class not found"); } String resourceName = className.replace('.', '/') +...
java
public static String getURLProtocol(String urlString) { String protocol = null; int firstColon = urlString.indexOf(':'); if (firstColon >= 0) { String specifiedProtocol = urlString.substring(0, firstColon); if (FindBugs.knownURLProtocolSet.contains(specifiedProtocol)) { ...
java
public static String getFileExtension(String fileName) { int lastDot = fileName.lastIndexOf('.'); return (lastDot >= 0) ? fileName.substring(lastDot) : null; }
java
public void killLoadsOfField(XField field) { if (!REDUNDANT_LOAD_ELIMINATION) { return; } HashSet<AvailableLoad> killMe = new HashSet<>(); for (AvailableLoad availableLoad : getAvailableLoadMap().keySet()) { if (availableLoad.getField().equals(field)) { ...
java
public void addMeta(char meta, String replacement) { metaCharacterSet.set(meta); replacementMap.put(new String(new char[] { meta }), replacement); }
java
public static String getResourceString(String key) { ResourceBundle bundle = FindbugsPlugin.getDefault().getResourceBundle(); try { return bundle.getString(key); } catch (MissingResourceException e) { return key; } }
java
public static String getFindBugsEnginePluginLocation() { // findbugs.home should be set to the directory the plugin is // installed in. URL u = plugin.getBundle().getEntry("/"); try { URL bundleRoot = FileLocator.resolve(u); String path = bundleRoot.getPath(); ...
java
public void logException(Throwable e, String message) { logMessage(IStatus.ERROR, message, e); }
java
public static IPath getBugCollectionFile(IProject project) { // IPath path = project.getWorkingLocation(PLUGIN_ID); // // project-specific but not user-specific? IPath path = getDefault().getStateLocation(); // user-specific but not // project-specific return path.append(project....
java
public static SortedBugCollection getBugCollection(IProject project, IProgressMonitor monitor) throws CoreException { SortedBugCollection bugCollection = (SortedBugCollection) project.getSessionProperty(SESSION_PROPERTY_BUG_COLLECTION); if (bugCollection == null) { try { ...
java
private static void readBugCollectionAndProject(IProject project, IProgressMonitor monitor) throws IOException, DocumentException, CoreException { SortedBugCollection bugCollection; IPath bugCollectionPath = getBugCollectionFile(project); // Don't turn the path to an IFile because i...
java
public static void storeBugCollection(IProject project, final SortedBugCollection bugCollection, IProgressMonitor monitor) throws IOException, CoreException { // Store the bug collection and findbugs project in the session project.setSessionProperty(SESSION_PROPERTY_BUG_COLLECTION, bugColle...
java
public static void saveCurrentBugCollection(IProject project, IProgressMonitor monitor) throws CoreException { if (isBugCollectionDirty(project)) { SortedBugCollection bugCollection = (SortedBugCollection) project.getSessionProperty(SESSION_PROPERTY_BUG_COLLECTION); if (bugCollection !=...
java
public static UserPreferences getProjectPreferences(IProject project, boolean forceRead) { try { UserPreferences prefs = (UserPreferences) project.getSessionProperty(SESSION_PROPERTY_USERPREFS); if (prefs == null || forceRead) { prefs = readUserPreferences(project); ...
java
public static void saveUserPreferences(IProject project, final UserPreferences userPrefs) throws CoreException { FileOutput userPrefsOutput = new FileOutput() { @Override public void writeFile(OutputStream os) throws IOException { userPrefs.write(os); } ...
java
private static void resetStore(IPreferenceStore store, String prefix) { int start = 0; // 99 is paranoia. while(start < 99){ String name = prefix + start; if(store.contains(name)){ store.setToDefault(name); } else { break; ...
java
private static void ensureReadWrite(IFile file) throws CoreException { /* * fix for bug 1683264: we should checkout file before writing to it */ if (file.isReadOnly()) { IStatus checkOutStatus = ResourcesPlugin.getWorkspace().validateEdit(new IFile[] { file }, null); ...
java
private static UserPreferences readUserPreferences(IProject project) throws CoreException { IFile userPrefsFile = getUserPreferencesFile(project); if (!userPrefsFile.exists()) { return null; } try { // force is preventing us for out-of-sync exception if file was ...
java
public RecursiveFileSearch search() throws InterruptedException { File baseFile = new File(baseDir); String basePath = bestEffortCanonicalPath(baseFile); directoryWorkList.add(baseFile); directoriesScanned.add(basePath); directoriesScannedList.add(basePath); while (!dire...
java
public static MethodDescriptor getMethodDescriptor(JavaClass jclass, Method method) { return DescriptorFactory.instance().getMethodDescriptor(jclass.getClassName().replace('.', '/'), method.getName(), method.getSignature(), method.isStatic()); }
java
public static ClassDescriptor getClassDescriptor(JavaClass jclass) { return DescriptorFactory.instance().getClassDescriptor(ClassName.toSlashedClassName(jclass.getClassName())); }
java
public static boolean preTiger(JavaClass jclass) { return jclass.getMajor() < JDK15_MAJOR || (jclass.getMajor() == JDK15_MAJOR && jclass.getMinor() < JDK15_MINOR); }
java
public void addBugCategory(BugCategory bugCategory) { BugCategory old = bugCategories.get(bugCategory.getCategory()); if (old != null) { throw new IllegalArgumentException("Category already exists"); } bugCategories.put(bugCategory.getCategory(), bugCategory); }
java
public DetectorFactory getFactoryByShortName(final String shortName) { return findFirstMatchingFactory(factory -> factory.getShortName().equals(shortName)); }
java
public DetectorFactory getFactoryByFullName(final String fullName) { return findFirstMatchingFactory(factory -> factory.getFullName().equals(fullName)); }
java
public Collection<TypeQualifierValue<?>> getDirectlyRelevantTypeQualifiers(MethodDescriptor m) { Collection<TypeQualifierValue<?>> result = methodToDirectlyRelevantQualifiersMap.get(m); if (result != null) { return result; } return Collections.<TypeQualifierValue<?>> emptyLis...
java
public void setDirectlyRelevantTypeQualifiers(MethodDescriptor methodDescriptor, Collection<TypeQualifierValue<?>> qualifiers) { methodToDirectlyRelevantQualifiersMap.put(methodDescriptor, qualifiers); allKnownQualifiers.addAll(qualifiers); }
java
private int adjustPriority(int priority) { try { Subtypes2 subtypes2 = AnalysisContext.currentAnalysisContext().getSubtypes2(); if (!subtypes2.hasSubtypes(getClassDescriptor())) { priority++; } else { Set<ClassDescriptor> mySubtypes = subtype...
java
void registerDetector(DetectorFactory factory) { if (FindBugs.DEBUG) { System.out.println("Registering detector: " + factory.getFullName()); } String detectorName = factory.getShortName(); if(!factoryList.contains(factory)) { factoryList.add(factory); } el...
java
public @CheckForNull BugPattern lookupBugPattern(String bugType) { if (bugType == null) { return null; } return bugPatternMap.get(bugType); }
java
public Collection<String> getBugCategories() { ArrayList<String> result = new ArrayList<>(categoryDescriptionMap.size()); for(BugCategory c : categoryDescriptionMap.values()) { if (!c.isHidden()) { result.add(c.getCategory()); } } return result; ...
java
public static boolean isGetterMethod(ClassContext classContext, Method method) { MethodGen methodGen = classContext.getMethodGen(method); if (methodGen == null) { return false; } InstructionList il = methodGen.getInstructionList(); // System.out.println("Checking gett...
java
private FieldStats getStats(XField field) { FieldStats stats = statMap.get(field); if (stats == null) { stats = new FieldStats(field); statMap.put(field, stats); } return stats; }
java