diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 91b0facd92..273d0e42a8 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -480,7 +480,7 @@ trait Namers { self: Analyzer => "to non-private fields") else { val flags = mods.flags & (DEFERRED | OVERRIDE | STATIC) - val beanName = name(0).toString.toUpperCase + name.subName(1, name.length) + val beanName = name.toString.capitalize val getterName = if (hasBoolBP) "is" + beanName else "get" + beanName |