My favorites | Sign in
Project Logo
             
Details: Show all Hide all

Last 30 days

  • Dec 26, 2009
    issue 18 (Suggestion - please add to the fields list the fields or pub...) Owner changed by claus.ibsen   -  
    Owner: ---
    Owner: ---
  • Dec 26, 2009
    issue 4 (Add plugin documentation to wiki page) Owner changed by claus.ibsen   -  
    Owner: ---
    Owner: ---
  • Dec 26, 2009
    issue 4 (Add plugin documentation to wiki page) commented on by claus.ibsen   -   If anyone is willing to help, then please speak up.
    If anyone is willing to help, then please speak up.
  • Dec 26, 2009
    issue 24 (Use StringBuilder instead of string concatenation) Status changed by claus.ibsen   -   Lets keep the current default. People can just change the template of choice as default to use.
    Status: WontFix
    Lets keep the current default. People can just change the template of choice as default to use.
    Status: WontFix
  • Dec 26, 2009
    issue 25 (Wrong toString() generation when there are promitive arrays ...) Status changed by claus.ibsen   -   Good idea, I think changing the template provided out of the box is all what is needed.
    Status: Accepted
    Good idea, I think changing the template provided out of the box is all what is needed.
    Status: Accepted
  • Dec 26, 2009
    issue 26 (could not connect to server (http://generate-tostring.google...) Status changed by claus.ibsen   -  
    Status: WontFix
    Status: WontFix
  • Dec 26, 2009
    issue 26 (could not connect to server (http://generate-tostring.google...) commented on by claus.ibsen   -   Just try again a bit later? I guess the SVN client had trouble communicating with the Google SVN server.
    Just try again a bit later? I guess the SVN client had trouble communicating with the Google SVN server.
  • Dec 08, 2009
    issue 26 (could not connect to server (http://generate-tostring.google...) reported by Dhammika.Kariyawasam   -   When I issue following command svn checkout http://generate-tostring.googlecode.com/svn/trunk/ generate- tostring-read-only It will say svn: PROPFIND request failed on '/svn/trunk' svn: PROPFIND of '/svn/trunk': could not connect to server (http://generate- tostring.googlecode.com) Please help
    When I issue following command svn checkout http://generate-tostring.googlecode.com/svn/trunk/ generate- tostring-read-only It will say svn: PROPFIND request failed on '/svn/trunk' svn: PROPFIND of '/svn/trunk': could not connect to server (http://generate- tostring.googlecode.com) Please help

Older

  • Apr 26, 2009
    issue 25 (Wrong toString() generation when there are promitive arrays ...) commented on by mbuzdalov   -   Sorry for mistakes, promitive -> primitive suppose -> suggest
    Sorry for mistakes, promitive -> primitive suppose -> suggest
  • Apr 26, 2009
    issue 25 (Wrong toString() generation when there are promitive arrays ...) reported by mbuzdalov   -   >> What steps will reproduce the problem? 1. Create a class: public class Vector { private double[] values; } 2. Alt+Ins, then toString(), then we see >> What is the expected output? Something like this, which works: public class Vector { private double[] values; @Override public String toString() { return "Vector{" + "values=" + (values == null ? null : Arrays.toString(values)) + '}'; } } >> What do you see instead? import java.util.Arrays; public class Vector { private double[] values; @Override public String toString() { return "Vector{" + "values=" + (values == null ? null : Arrays.asList(values)) + '}'; } } which is wrong because Arrays.asList does not work as expected on primitive arrays (it is a vararg method). >> What version of the product are you using? On what operating system? The one that is shipped with IntelliJ IDEA 8.1. Linux. Please provide any additional information below. Suppose to replace Arrays.asList with Arrays.toString. It doesn't create a list object and correctly works with nulls.
    >> What steps will reproduce the problem? 1. Create a class: public class Vector { private double[] values; } 2. Alt+Ins, then toString(), then we see >> What is the expected output? Something like this, which works: public class Vector { private double[] values; @Override public String toString() { return "Vector{" + "values=" + (values == null ? null : Arrays.toString(values)) + '}'; } } >> What do you see instead? import java.util.Arrays; public class Vector { private double[] values; @Override public String toString() { return "Vector{" + "values=" + (values == null ? null : Arrays.asList(values)) + '}'; } } which is wrong because Arrays.asList does not work as expected on primitive arrays (it is a vararg method). >> What version of the product are you using? On what operating system? The one that is shipped with IntelliJ IDEA 8.1. Linux. Please provide any additional information below. Suppose to replace Arrays.asList with Arrays.toString. It doesn't create a list object and correctly works with nulls.
  • Oct 27, 2008
    issue 24 (Use StringBuilder instead of string concatenation) Status changed by claus.ibsen   -   There is a template with the StringBuilder out-of-the-box. See the settings where you can change the default template to use, so you can replace the + with stringbuilder.
    Status: Accepted
    There is a template with the StringBuilder out-of-the-box. See the settings where you can change the default template to use, so you can replace the + with stringbuilder.
    Status: Accepted
  • Oct 16, 2008
    issue 24 (Use StringBuilder instead of string concatenation) reported by lighteater   -   Generated toString method should use stringbuilder to build the resulting representation instead of string concatenation. Example: public class SessionUser { // ... fields etc public String toString() { StringBuilder sb = new StringBuilder("SessionUser{"); sb.append("language='").append(language).append('\''); sb.append(", login='").append(login).append('\''); sb.append("}"); } } The reason is that string concatenation creates a huge amount of unnecessary string objects in memory since strings are immutable. Also note the use of StringBuilder and not StringBuffer since the latter includes theread safety overhead which is not necessary here. However it might be appropriate to check the jvm version since StringBuilder is available starting Java 1.5
    Generated toString method should use stringbuilder to build the resulting representation instead of string concatenation. Example: public class SessionUser { // ... fields etc public String toString() { StringBuilder sb = new StringBuilder("SessionUser{"); sb.append("language='").append(language).append('\''); sb.append(", login='").append(login).append('\''); sb.append("}"); } } The reason is that string concatenation creates a huge amount of unnecessary string objects in memory since strings are immutable. Also note the use of StringBuilder and not StringBuffer since the latter includes theread safety overhead which is not necessary here. However it might be appropriate to check the jvm version since StringBuilder is available starting Java 1.5
  • Aug 19, 2008
    issue 23 (Support IntelliJ 8) Status changed by claus.ibsen   -   Hi JetBrains now officially bundle the plugin in their distribution of IDEA. So what you need to do is to uninstall the plugin and do a clean install of IDEA 8.0M1 and during the installation wizard, select ([x]) the toString() plugin. The bundled version is v4.0.6. You should *not* download the plugin from the plugin manager.
    Status: Fixed
    Hi JetBrains now officially bundle the plugin in their distribution of IDEA. So what you need to do is to uninstall the plugin and do a clean install of IDEA 8.0M1 and during the installation wizard, select ([x]) the toString() plugin. The bundled version is v4.0.6. You should *not* download the plugin from the plugin manager.
    Status: Fixed
  • Aug 18, 2008
    issue 23 (Support IntelliJ 8) reported by wim.deblauwe   -   What steps will reproduce the problem? 1. Install IntelliJ 8 beta 1 2. Try to use the toString() (with the commons-lang template) 3. I get the following exception from idea and nothing is generated: Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1@1248d56,notifier=null,catchExceptions=false,when=1219062721904] on sun.awt.X11.XToolkit@3184d8: com.intellij.psi.PsiManager.getElementFactory()Lcom/intellij/psi/PsiElementFactory; java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.getElementFactory()Lcom/intellij/psi/PsiElementFactory; at generate.tostring.psi.PsiAdapter.getPsiElemetFactory(PsiAdapter.java:71) at generate.tostring.GenerateToStringActionHandlerImpl.doExecuteAction(GenerateToStringActionHandlerImpl.java:117) at generate.tostring.GenerateToStringActionHandlerImpl.executeWriteAction(GenerateToStringActionHandlerImpl.java:78) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:51) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:222) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:35) at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:60) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:143) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:67) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:46) at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:3) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:44) at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:42) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:224) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) What version of the product are you using? On what operating system? IntelliJ 8 beta 1 plugin version 4.0.7 Ubuntu Linux 8.04
    What steps will reproduce the problem? 1. Install IntelliJ 8 beta 1 2. Try to use the toString() (with the commons-lang template) 3. I get the following exception from idea and nothing is generated: Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1@1248d56,notifier=null,catchExceptions=false,when=1219062721904] on sun.awt.X11.XToolkit@3184d8: com.intellij.psi.PsiManager.getElementFactory()Lcom/intellij/psi/PsiElementFactory; java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.getElementFactory()Lcom/intellij/psi/PsiElementFactory; at generate.tostring.psi.PsiAdapter.getPsiElemetFactory(PsiAdapter.java:71) at generate.tostring.GenerateToStringActionHandlerImpl.doExecuteAction(GenerateToStringActionHandlerImpl.java:117) at generate.tostring.GenerateToStringActionHandlerImpl.executeWriteAction(GenerateToStringActionHandlerImpl.java:78) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:51) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:222) at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:35) at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:60) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:143) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:67) at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:46) at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:3) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:44) at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:42) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:224) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) What version of the product are you using? On what operating system? IntelliJ 8 beta 1 plugin version 4.0.7 Ubuntu Linux 8.04
  • Aug 10, 2008
    issue 13 (Remove usage of @deprecated IDEA API) Status changed by claus.ibsen   -   Fixed in plugin bundled with IDEA 8
    Status: Fixed
    Fixed in plugin bundled with IDEA 8
    Status: Fixed
  • Aug 10, 2008
    issue 19 (Idea 8.0 (codename "Diana") compatibility) Status changed by claus.ibsen   -   Glad to report that generate toString() is now official bundled with IDEA starting from 8.0M1. JetBrains will help maintain this plugin for the future. Thanks a lot JetBrains. Check out my blog for more details.
    Status: Fixed
    Glad to report that generate toString() is now official bundled with IDEA starting from 8.0M1. JetBrains will help maintain this plugin for the future. Thanks a lot JetBrains. Check out my blog for more details.
    Status: Fixed
 
Hosted by Google Code