Skip to content

Commit 1dcaa04

Browse files
committed
Fix typo in reference manual
1 parent 2c274cf commit 1dcaa04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/asciidoc/languages/dynamic-languages.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ Finally, the following small application exercises the preceding configuration:
480480
481481
public class Main {
482482
483-
public static void Main(String[] args) {
483+
public static void main(String[] args) {
484484
ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
485-
Calculator calc = (Calculator) ctx.getBean("calculator");
485+
Calculator calc = ctx.getBean("calculator", Calculator.class);
486486
System.out.println(calc.add(2, 8));
487487
}
488488
}

0 commit comments

Comments
 (0)