FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 760 : AutoFormat Color[]
Last modified: 2010-03-28 10:17
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P4
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
alphachapmtl
Assigned To:
MrFeinberg
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-04-22 18:16
(0135 Beta) After AutoFormat, the lines
n=3;
and
}//method1
have bad indentation[CODE]int n=0;
void setup() {
size(125,125);
background(153);
noLoop();
}//setup()
void draw() {
method1();
}//draw()
color[] method1() {
if (n==1) {
return new color[] {
color(0,0,0)
};
}
n=3;
n=4;
return new color[] {
color(0,0,0)
};
}//method1
[/CODE]
Additional Comment
#1 From fry 2008-06-09 12:10
yeah, the autoformatter is on its way out before 1.0.
Additional Comment
#2 From fry 2010-03-28 10:17
fixed by jdf.