jgit/org.eclipse.jgit.http.test
Han-Wen Nienhuys f3ec7cf3f0 Remove further unnecessary 'final' keywords
Remove it from

 * package private functions.

 * try blocks

 * for loops

this was done with the following python script:

$ cat f.py
import sys
import re
import os

def replaceFinal(m):
  return m.group(1) + "(" +  m.group(2).replace('final ', '') + ")"

methodDecl = re.compile(r"^([\t ]*[a-zA-Z_ ]+)\(([^)]*)\)")

def subst(fn):
  input = open(fn)
  os.rename(fn, fn + "~")

  dest = open(fn, 'w')
  for l in input:
    l = methodDecl.sub(replaceFinal, l)
    dest.write(l)
  dest.close()


for root, dirs, files in os.walk(".", topdown=False):
  for f in files:
    if not f.endswith('.java'):
      continue

    full = os.path.join(root, f)
    print full
    subst(full)

Change-Id: If533a75a417594fc893e7c669d2c1f0f6caeb7ca
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
2018-05-18 17:59:45 +02:00
..
.settings Enable warning for resources not managed by try-with-resource 2018-03-03 23:58:47 +01:00
META-INF Prepare 5.0.0-SNAPSHOT builds 2018-03-08 23:09:18 +01:00
src/org/eclipse/jgit/http/test Fix javadoc in org.eclipse.jgit.http.test 2017-12-17 20:05:55 +01:00
tst/org/eclipse/jgit/http Remove further unnecessary 'final' keywords 2018-05-18 17:59:45 +02:00
.classpath Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
.gitignore Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
.project Enforce the use of Java5 API:s only (with a few exceptions) 2011-12-16 01:01:36 +01:00
BUILD Bazel: Add missing dependency in org.eclipse.jgit.http.test 2017-08-18 10:01:06 +01:00
build.properties Add path src/ to source path in build.properties 2016-08-06 19:12:06 -04:00
org.eclipse.jgit.http--All-Tests.launch Add the other test launchers as favorites 2013-06-16 23:33:29 +02:00
plugin.properties Fix plugin provider names to conform with release train requirement 2013-04-08 23:05:36 +02:00
pom.xml Prepare 5.0.0-SNAPSHOT builds 2018-03-08 23:09:18 +01:00