Skip to content

Commit d696b33

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of bundles/org.eclipse.core.databinding.observable
1 parent 43ab249 commit d696b33

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/BidirectionalMap.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public class BidirectionalMap<K, V> extends ObservableMap<K, V> {
4545
* @param wrappedMap backing store for the map data, used to implement all map
4646
* operations
4747
*/
48+
@Deprecated
4849
public BidirectionalMap(IObservableMap<K, V> wrappedMap) {
4950
super(wrappedMap.getRealm(), wrappedMap);
5051
wrappedMap.addMapChangeListener(mapListener);

bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/set/MappedSet.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public void handleSetChange(SetChangeEvent event) {
109109
* @param input input set with keys from the map
110110
* @param map the map to map
111111
*/
112+
@Deprecated
112113
public MappedSet(IObservableSet input, IObservableMap map) {
113114
super(input.getRealm(), Collections.EMPTY_SET, Object.class);
114115
setWrappedSet(valueCounts.keySet());
@@ -126,6 +127,7 @@ public MappedSet(IObservableSet input, IObservableMap map) {
126127
* @param mapValue map value to add
127128
* @return true if the given mapValue was an addition
128129
*/
130+
@Deprecated
129131
protected boolean handleAddition(Object mapValue) {
130132
Integer count = (Integer) valueCounts.get(mapValue);
131133
if (count == null) {
@@ -140,6 +142,7 @@ protected boolean handleAddition(Object mapValue) {
140142
* @param mapValue map value to remove
141143
* @return true if the given mapValue has been removed
142144
*/
145+
@Deprecated
143146
protected boolean handleRemoval(Object mapValue) {
144147
Integer count = (Integer) valueCounts.get(mapValue);
145148
if (count.intValue() <= 1) {
@@ -150,6 +153,7 @@ protected boolean handleRemoval(Object mapValue) {
150153
return false;
151154
}
152155

156+
@Deprecated
153157
@Override
154158
public synchronized void dispose() {
155159
wrappedMap.removeMapChangeListener(mapChangeListener);

0 commit comments

Comments
 (0)