Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 Printer Java: import collapse does not work - ID: 617608
Last Update: Settings changed ( marcohu )



Jalopy messages

C:\dev\BMS\components\persistence\src\java\com\arena
\persistence\engine\TOPLinkPersistenceMachine.java (0
info(s), 0 warning(s), 0 error(s))
0:java.lang.NullPointerException
java.lang.NullPointerException
at
de.hunsicker.jalopy.parser.ImportTransformation.createI
mportNode(ImportTransformation.java:857)
at
de.hunsicker.jalopy.parser.ImportTransformation.createI
mportNodes(ImportTransformation.java:953)
at
de.hunsicker.jalopy.parser.ImportTransformation.updateT
ree(ImportTransformation.java:1334)
at
de.hunsicker.jalopy.parser.ImportTransformation.collapse
(ImportTransformation.java:804)
at
de.hunsicker.jalopy.parser.ImportTransformation.apply
(ImportTransformation.java:181)
at
de.hunsicker.jalopy.parser.JavaRecognizer.transform
(JavaRecognizer.java:317)
at
de.hunsicker.jalopy.parser.JavaRecognizer.getAST
(JavaRecognizer.java:161)
at de.hunsicker.jalopy.Jalopy.parse
(Jalopy.java:1212)



with the following settings ...
at de.hunsicker.jalopy.Jalopy.format
(Jalopy.java:987)
at
de.hunsicker.jalopy.plugin.AbstractPlugin.format
(AbstractPlugin.java:521)
at
de.hunsicker.jalopy.plugin.AbstractPlugin.access$300
(AbstractPlugin.java:88)
at
de.hunsicker.jalopy.plugin.AbstractPlugin$ActionWorker.
construct(AbstractPlugin.java:846)
at de.hunsicker.ui.util.SwingWorker$2.call
(SwingWorker.java:352)
at
de.hunsicker.util.concurrent.FutureResult$1.run
(FutureResult.java:228)
at de.hunsicker.ui.util.SwingWorker.run
(SwingWorker.java:374)
at java.lang.Thread.run(Thread.java:484)



my settings ...
---------------------------------------------------------------------------
-
<jalopy>
<printer>
<whitespace>

<paddingLogicalOperators>true</paddingLogicalOperator
s>
<padddingBraces>true</padddingBraces>

<beforeStatementParenthesis>false</beforeStatementPa
renthesis>

<padddingParenthesis>true</padddingParenthesis>
<beforeBraces>false</beforeBraces>

<paddingShiftOperators>true</paddingShiftOperators>

<beforeMethodCallParenthesis>false</beforeMethodCall
Parenthesis>
<beforeLogicalNot>false</beforeLogicalNot>

<beforeBracketsTypes>false</beforeBracketsTypes>

<paddingMathematicalOperators>false</paddingMathem
aticalOperators>
<afterComma>true</afterComma>

<afterCastingParenthesis>true</afterCastingParenthesis
>

<paddingBitwiseOperators>true</paddingBitwiseOperato
rs>
<beforeCaseColon>true</beforeCaseColon>
<padddingTypeCast>false</padddingTypeCast>
<beforeBrackets>false</beforeBrackets>
<padddingBrackets>false</padddingBrackets>

<paddingRelationalOperators>true</paddingRelationalOp
erators>

<paddingAssignmentOperators>true</paddingAssignme
ntOperators>

<beforeMethodDeclarationParenthesis>false</beforeMet
hodDeclarationParenthesis>
<afterSemiColon>true</afterSemiColon>
</whitespace>
<blankLines>
<afterClass>1</afterClass>
<beforeBraceRight>0</beforeBraceRight>
<beforeFooter>0</beforeFooter>
<afterInterface>1</afterInterface>
<beforeDeclaration>1</beforeDeclaration>

<beforeCommentMultiLine>1</beforeCommentMultiLine>
<afterDeclaration>0</afterDeclaration>
<afterPackage>1</afterPackage>
<afterBlock>1</afterBlock>
<afterFooter>0</afterFooter>
<beforeControl>1</beforeControl>
<beforeHeader>0</beforeHeader>
<keepUpTo>1</keepUpTo>
<afterMethod>1</afterMethod>
<beforeCaseBlock>1</beforeCaseBlock>
<beforeJavadoc>1</beforeJavadoc>
<beforeBlock>1</beforeBlock>
<afterBraceLeft>0</afterBraceLeft>

<beforeCommentSingleLine>1</beforeCommentSingleLin
e>
<afterLastImport>2</afterLastImport>
<afterHeader>1</afterHeader>
</blankLines>
<indentation>
<leading>0</leading>

<continationIfTernary>false</continationIfTernary>
<braceCuddled>1</braceCuddled>
<label>false</label>
<general>4</general>

<firstColumnComments>true</firstColumnComments>
<tabs>
<size>4</size>
<use>false</use>
</tabs>
<extends>-1</extends>
<caseFromSwitch>false</caseFromSwitch>
<braceLeft>1</braceLeft>
<continuation>4</continuation>
<deep>55</deep>
<parameter>-1</parameter>
<braceRight>0</braceRight>
<commentEndline>1</commentEndline>
<throws>-1</throws>

<useMethodCallParams>false</useMethodCallParams>
<braceRightAfter>1</braceRightAfter>
<implements>-1</implements>
<continationIf>true</continationIf>
</indentation>
<sorting>
<class>false</class>
<modifiers>
<use>false</use>
</modifiers>
<method>false</method>
<constructor>false</constructor>
<use>true</use>
<order>Static Variables/Initializers,Instance
Variables,Instance
Initializers,Constructors,Methods,Interfaces,Classes</or
der>
<interface>false</interface>
<variable>true</variable>

<orderModifiers>public,protected,private,abstract,static,fi
nal,synchronized,transient,volatile,native,strictfp</orderM
odifiers>
</sorting>
<wrapping>
<paramsMethodDef>false</paramsMethodDef>
<beforeOperator>false</beforeOperator>
<use>false</use>
<afterExtendsTypes>false</afterExtendsTypes>
<arrayElements>0</arrayElements>
<beforeExtends>false</beforeExtends>
<afterLabel>true</afterLabel>
<paramsMethodCall>false</paramsMethodCall>
<afterThrowsTypes>false</afterThrowsTypes>
<beforeImplements>false</beforeImplements>
<beforeThrows>false</beforeThrows>

<afterImplementsTypes>false</afterImplementsTypes>

<paramsMethodCallIfCall>false</paramsMethodCallIfCall
>

<afterChainedMethodCall>false</afterChainedMethodCall
>
<lineLength>80</lineLength>
</wrapping>
<comments>
<separator>
<interface>Interfaces</interface>
<instanceInit>Instance
initializers</instanceInit>
<instanceVariable>Instance
variables</instanceVariable>
<fillCharacter>·</fillCharacter>
<staticVariableInit>Static
variables/initializers</staticVariableInit>
<ctor>Constructors</ctor>
<method>Methods</method>
<class>Classes</class>
</separator>
<insertSeparator>false</insertSeparator>
<javadoc>
<addCtor>23</addCtor>
<templates>
<methods>
<exception> * @throws
$exceptionType$ Describe</exception>
<top>/**| * </top>
<bottom> */</bottom>
<return> * @return Describe</return>
<param> * @param $paramType$
Describe</param>
</methods>
<interface>/**| *| *| * | *| * @version $Id$-
$Revision$| * @author $Author$| * @edited
$DateTime$| */</interface>
<constructors>
<param> * @param $paramType$
</param>
<bottom> */</bottom>
<exception> * @throws
$exceptionType$ </exception>
<top>/**| * Creates a new $objectType$
object.</top>
</constructors>
<classes>/**| *| *| * | *| * @version
$Revision$| * @author $Author$| * @edited
$DateTime$| */</classes>
<variables>/** */</variables>
</templates>
<tags>
<standard>@edited</standard>
<in-line />
</tags>
<remove>false</remove>
<addMethod>23</addMethod>
<addClass>23</addClass>
<checkTags>true</checkTags>
<addField>23</addField>
<parseComments>true</parseComments>
<checkInnerClass>false</checkInnerClass>
</javadoc>
<removeSingleLine>false</removeSingleLine>
<formatMultiLine>true</formatMultiLine>
<removeMultiLine>false</removeMultiLine>

<insertSeparatorRecursive>false</insertSeparatorRecurs
ive>
</comments>
<footer>
<keys />
<text />
<use>false</use>
<smartModeLines>0</smartModeLines>
</footer>
<braces>

<treatMethodClassDifferent>false</treatMethodClassDiff
erent>
<insertBracesWhile>true</insertBracesWhile>

<removeBracesWhile>false</removeBracesWhile>
<insertBracesFor>true</insertBracesFor>

<insertBracesDoWhile>true</insertBracesDoWhile>

<emptyInsertStatement>false</emptyInsertStatement>
<rightBraceNewLine>false</rightBraceNewLine>
<removeBracesFor>false</removeBracesFor>

<removeBracesIfElse>false</removeBracesIfElse>

<removeBracesBlock>true</removeBracesBlock>

<removeBracesDoWhile>false</removeBracesDoWhile>
<insertBracesIfElse>true</insertBracesIfElse>
<emptyCuddle>false</emptyCuddle>
<leftBraceNewLine>false</leftBraceNewLine>
</braces>
<header>
<smartModeLines>0</smartModeLines>
<use>true</use>
<keys>arena</keys>
<text>/*
* Copyright 2002 Arena Online. All Rights Reserved.
*
* This software is the proprietary information of Arena
Online
* Use is subject to license terms.
*/</text>
</header>
<chunks>
<byBlankLines>true</byBlankLines>
<byComments>true</byComments>
</chunks>
<environment />
<alignment>
<varIdents>false</varIdents>
<ParamsMethodDef>false</ParamsMethodDef>
<varAssigns>false</varAssigns>

<ternaryExpresssion>false</ternaryExpresssion>
<ternaryValue>false</ternaryValue>
</alignment>
<history>
<policy>History.Policy [disabled]</policy>
</history>
</printer>
<transform>
<misc>

<insertLoggingConditional>false</insertLoggingCondition
al>
<insertUID>false</insertUID>

<insertExpressionParenthesis>true</insertExpressionPa
renthesis>
</misc>
<import>
<policy>ImportPolicy [collapse]</policy>
<grouping>javax:2|java:2|gnu:2</grouping>
<groupingDepth>3</groupingDepth>
<sort>true</sort>
</import>
</transform>
<messages>
<transformMsgPrio>30000</transformMsgPrio>
<printerMsgPrio>30000</printerMsgPrio>

<parserJavadocMsgPrio>30000</parserJavadocMsgPrio
>
<parserMsgPrio>30000</parserMsgPrio>

<printerJavadocMsgPrio>30000</printerJavadocMsgPrio
>

<showErrorStackTrace>true</showErrorStackTrace>
<ioMsgPrio>30000</ioMsgPrio>
</messages>
<general>
<styleDescription>BMS Coding
Convention</styleDescription>
<backupDirectory>bak</backupDirectory>
<styleName>BMS</styleName>
<sourceVersion>13</sourceVersion>
<threadCount>1</threadCount>
<backupLevel>3</backupLevel>
<forceFormatting>false</forceFormatting>
</general>
<internal>
<version>4</version>
</internal>
</jalopy>


mark ralph ( ralphy-boy ) - 2002-10-02 15:43

1

Closed

Fixed

Marco Hunsicker

Printer Java

None

Public


Comment ( 1 )

Date: 2002-10-13 10:27
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

I haven't double-checked with 1.0b8, but current dev-version
works. Disable the import optimization collapse feature as a
workaroung. That is the cause of the error.

Thanks.


Attached File ( 1 )

Filename Description Download
TOPLinkPersistenceMachine.java Download

Changes ( 8 )

Field Old Value Date By
close_date - 2002-11-13 00:02 marcohu
status_id Open 2002-11-13 00:02 marcohu
resolution_id None 2002-11-13 00:02 marcohu
assigned_to nobody 2002-10-13 10:27 marcohu
summary this file gets a null pointer 2002-10-13 10:27 marcohu
category_id None 2002-10-13 10:27 marcohu
priority 5 2002-10-13 10:27 marcohu
File Added 32243: TOPLinkPersistenceMachine.java 2002-10-02 15:43 ralphy-boy