This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203761 - Variable unused: hint makes no sense in interfaces
Summary: Variable unused: hint makes no sense in interfaces
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 12:41 UTC by xgathos
Modified: 2011-10-18 01:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xgathos 2011-10-15 12:41:12 UTC
[ BUILD # : 201110140600 ]
[ JDK VERSION : 1.7 ]

see this interface:

interface ITable
{
  public static function factory($sAlias = self::ALIAS_DEFAULT);
}

netbeans shows hint: "variable $sAlias seems to be unused in current scope". in
the factory method the $sAlias IS used:

  public static function factory($sAlias = self::ALIAS_DEFAULT)
  {
    ...
    return self::fromName($sConfig, $sAlias, $sClassCalled);
  }

so it seems, netbeans just scans the interface. does not make sense, because in
interface the params will NEVER be used ;-)
Comment 1 Ondrej Brejla 2011-10-17 08:04:24 UTC
Reassigning
Comment 2 Ondrej Brejla 2011-10-17 09:44:25 UTC
Fixed in web main: http://hg.netbeans.org/web-main/rev/a4350417f026
Comment 3 Quality Engineering 2011-10-18 01:31:49 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a4350417f026
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #203761 - Variable unused: hint makes no sense in interfaces