Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 257802 Details for
Bug 481642
Surround with try/catch should throw RuntimeException by default instead of printStackTrace()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Surround with try/catch throw new RuntimeException() instead of printStackTrace()
eclipse_catch_block_throw_RuntimeException_instead_of_printStackTrace.diff (text/plain), 1.04 KB, created by
Missing name
on 2015-11-07 07:51:34 EST
(
hide
)
Description:
Surround with try/catch throw new RuntimeException() instead of printStackTrace()
Filename:
MIME Type:
Creator:
Missing name
Created:
2015-11-07 07:51:34 EST
Size:
1.04 KB
patch
obsolete
>--- org.eclipse.jdt.ui/templates/default-codetemplates.xml >+++ org.eclipse.jdt.ui/templates/default-codetemplates.xml >@@ -72,8 +72,7 @@ > <template name="annotationbody" id="org.eclipse.jdt.ui.text.codetemplates.annotationbody" description="%CodeTemplates.annotationbody" context="annotationbody_context" enabled="true"> > </template> > >-<template name="catchblock" id="org.eclipse.jdt.ui.text.codetemplates.catchblock" description="%CodeTemplates.catchblock" context="catchblock_context" enabled="true">// ${todo} %CodeTemplates.catchblock.tododesc >-${exception_var}.printStackTrace();</template> >+<template name="catchblock" id="org.eclipse.jdt.ui.text.codetemplates.catchblock" description="%CodeTemplates.catchblock" context="catchblock_context" enabled="true">throw new RuntimeException(${exception_var});</template> > > <template name="methodbody" id="org.eclipse.jdt.ui.text.codetemplates.methodbody" description="%CodeTemplates.methodstub" context="methodbody_context" enabled="true">// ${todo} %CodeTemplates.methodstub.tododesc > ${body_statement}</template>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 481642
: 257802