Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8102325

Code cleanup: eliminate duplicate classForName methods in GlassApplication.m and GlassHelper.m

    Details

      Description

      In reviewing RT-20843 Artem questioned why we have duplicate classForName methods in GlassApplication.m and GlassHelper.m. He wrote:

      "Right now we have two +SetGlassClassLoader:withEnv and two +ClassForName:withEnv methods: in GlassApplication and GlassHelper. Is it possible to use GlassHelper's functions from GlassApplication code?"

      I know of no good reason for the duplicated code. In fact, there is already one place in GlassApplication that is calling GlassHelper.ClassForName, which validates the thinking that we can get rid of the one in GlassApplication in favor of the one in GlassHelper.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                kcr Kevin Rushforth
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: