Bug 54108 - Weird piece of source code in SourceTypeConverter.java
Summary: Weird piece of source code in SourceTypeConverter.java
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-08 19:42 EST by David Mandelin CLA
Modified: 2004-05-18 11:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Mandelin CLA 2004-03-08 19:42:31 EST
In Eclipse 3.0M7 on line 224 of SourceTypeConverter.java, it has
'TypeDeclaration type = type = new TypeDeclaration(compilationResult);'. The
second "type = " seems to be unnecessary.
Comment 1 Frederic Fusier CLA 2004-04-27 04:39:27 EDT
Before merge of type declarations, code was:
/* create type declaration - can be member type */
TypeDeclaration type;
if (sourceType.getEnclosingType() == null) {
	type = new TypeDeclaration(compilationResult);
} else {
	type = new MemberTypeDeclaration(compilationResult);
}

So, definitely sounds like a typo error => fixed.
Comment 2 Olivier Thomann CLA 2004-05-18 11:59:32 EDT
Verified in 200405180816