kvrsfdc / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

Removing compiler warnings from generated- and infrastructure code #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have worked with removing most compiler warnings from the generated artifacts 
and from the infrastructure code and tools.

For EnterpriseConnection and PartnerConnection:

Modifications to connection.template to add @SuppressWarnings("unused") when 
return type is void and change the declaration of the knownHeaders HashMap.

This then mandates similar changes to SoapConnection.java. Here a default 
serialVersionUID is also added to the SessionTimedOutException. 

And while we're add it also fix a single warning in JdkHttpTransport.java.

Fault

All Faults (partner and enterprise) are missing serialVersionUID. This is done 
by a minor refactoring of ComplexTypeGenerator.java (add method isFault()) and 
a minor change to type.template.

The Partner SObject

The Partner SObject has unused imports. These are removed by fixing the 
corresponding sobject.template.

AggregateResult

Same with AggregateResult has unused imports. These are removed by fixing the 
corresponding aggregateResult.template.

Sources for all changes are attached (wsc-hack-warnings-1.zip).

The some minor changes here and there while removing warnings, source attached 
(wsc-hack-warnings-2.zip).

Read more at: http://blog.udby.com/archives/215

Original issue reported on code.google.com by jesperudby on 23 Jan 2013 at 9:15

Attachments:

GoogleCodeExporter commented 9 years ago
Working on it to be included in 23

Original comment by jesperudby on 31 Jan 2013 at 8:30

GoogleCodeExporter commented 9 years ago

Original comment by jesperudby on 31 Jan 2013 at 8:31

GoogleCodeExporter commented 9 years ago
fixed in 23

Original comment by jesperudby on 8 Feb 2013 at 6:38