--- old/src/macosx/classes/sun/lwawt/LWTextComponentPeer.java 2013-09-12 18:33:38.399549700 +0400 +++ new/src/macosx/classes/sun/lwawt/LWTextComponentPeer.java 2013-09-12 18:33:38.215539200 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -44,11 +44,14 @@ import javax.swing.text.Document; import javax.swing.text.JTextComponent; +/** + * Lightweight implementation of {@link TextComponentPeer}. Provides useful + * methods for {@link LWTextAreaPeer} and {@link LWTextFieldPeer} + */ abstract class LWTextComponentPeer extends LWComponentPeer implements DocumentListener, TextComponentPeer, InputMethodListener { - private volatile boolean firstChangeSkipped; LWTextComponentPeer(final T target, @@ -218,14 +221,14 @@ } @Override - public void inputMethodTextChanged(InputMethodEvent event) { + public void inputMethodTextChanged(final InputMethodEvent event) { synchronized (getDelegateLock()) { AWTAccessor.getComponentAccessor().processEvent(getTextComponent(), event); } } @Override - public void caretPositionChanged(InputMethodEvent event) { + public void caretPositionChanged(final InputMethodEvent event) { synchronized (getDelegateLock()) { AWTAccessor.getComponentAccessor().processEvent(getTextComponent(), event); }