24273

What does “used” mean when calling a method of a class

Question:

Everything worked fine before I renamed my old class since I messed it up too much and wanted to start again by copying everything that works.

Now I get this strange "<strong>- used</strong>" thingy when I try to call a method within the same class.

I thought it's because the old class had the same method and variable names so I renamed them all. I also renamed my new class's variables and methods but it shows this again.

I couldn't find the right terminology in order to find the answer, so if this means something else than what I thought, please enlighten me! Thanks!

Here's a screenshot:

<img alt="CLICK ME" class="b-lazy" data-src="https://i.imgur.com/Nxzj4TM.png" data-original="https://i.imgur.com/Nxzj4TM.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

Answer1:

The percentages and - used are information provided by <a href="http://www.eclipse.org/recommenders/" rel="nofollow">Eclipse Code Recommenders</a>.

The <strong>percentages</strong> are a ranking system: some code completion proposals with a high percentage are displayed at the top. The icons of these preferred/recommended proposals are marked with a star.

<strong>used</strong> instead of a percentage value are special cases: these <strong>proposals have already been applied on the same variable</strong> in your code. This <strong>helps to avoid mistakes</strong> such as point.setX(1);point.<strong>setX</strong>(2); instead of point.setX(1);point.<strong>setY</strong>(2);. Also if using a getter method that requires an extensive calculation, a variable is preferable to multiple calls. See used as a warning to choose the proposal at the current position, not as an error.

Recommend

  • Android “Hello World” tutorial using Eclipse
  • Access - Get distinct count of rows based on different column values
  • Adding custom class objects to listbox in c#
  • Django 2.0.7 - Syntax Error while doing Rename Field migration
  • WMI Linker Error on x64
  • Comparison operators and 'is' - operator precedence in python?
  • .htaccess redirect domain.com to www.domain.com
  • Synchronous Calls with jqGrid?
  • Issue with Terrain Collision using Three.js
  • How to output data of primefaces DataGrid component by columns instead of by rows (transpose data)?
  • 2d barcode reader Java ME sdk
  • playing mp3 from nsbundle
  • Excel File upload in asp.net using SqlBulkCopy
  • Set SelectedIndex of ListView in FlipView_SelectionChanged event
  • Thumbnails for mxml components in Flex
  • Ajax call on Multiple selection in Select box
  • What Exception is thrown on timeout?
  • Typeahead.js does give me suggestions but doesn't select them
  • gnuplot - How to make zmin equal to zmax keeeping autoscale on z axis
  • Floating parent div grows to hypothetical width of floating child div
  • LinkedIn API: Access Denied when getting Access Token
  • Amazon Elastick BeanStalk error: Failed to create the AWS Elastic Beanstalk application version
  • how to get the location(lat/lng) on google maps v3 from the location(x,y)
  • Print Longitude and Latitude in textbox Android
  • Cloud Code: Creating a Parse.File from URL
  • Terminal run dalvikvm with am.jar
  • Stacked bar chart with continuous time-axis as x-axis
  • VSTS work items list through REST API
  • How to handle div that is created dynamically in a table
  • Send array to next viewcontroller iOs xcode [duplicate]
  • Bind selectedDates Aggregation for Calendar
  • Google App Engine backend servlet not responding
  • What is the best way to cache and reuse immutable singleton objects in Java?
  • Make checkout phone field optional for specific countries in WooCommerce
  • calling IO Operations from thread in ruby c extension will cause ruby to hang
  • Angular 4: Responsive Grid List
  • Write to .csv file with PHP (Commas in Data Error)
  • ReferenceError: TextEncoder is not defined