Spec-Zone .ru
спецификации, руководства, описания, API
|
Интерфейс и Описание |
---|
org.xml.sax. AttributeList
Этот интерфейс был заменен SAX2
Attributes интерфейс, который включает поддержку Пространства имен. |
java.security. Сертификат
Новый пакет обработки сертификата создается в платформе Java. Этот интерфейс Сертификата полностью осуждается и должен здесь учесть гладкий переход к новому пакету.
|
org.xml.sax. DocumentHandler
Этот интерфейс был заменен SAX2
ContentHandler интерфейс, который включает поддержку Пространства имен. |
org.omg. CORBA.DynAny
Используйте новый DynAny вместо этого
|
org.omg. CORBA.DynArray
Используйте новый DynArray вместо этого
|
org.omg. CORBA.DynEnum
Используйте новый DynEnum вместо этого
|
org.omg. CORBA.DynFixed
Используйте новый DynFixed вместо этого
|
org.omg. CORBA.DynSequence
Используйте новый DynSequence вместо этого
|
org.omg. CORBA.DynStruct
Используйте новый DynStruct вместо этого
|
org.omg. CORBA.DynUnion
Используйте новый DynUnion вместо этого
|
org.omg. CORBA.DynValue
Используйте новый DynValue вместо этого
|
java.rmi.server. LoaderHandler
никакая замена
|
org.xml.sax. Синтаксический анализатор
Этот интерфейс был заменен SAX2
XMLReader интерфейс, который включает поддержку Пространства имен. |
java.rmi.registry. RegistryHandler
никакая замена
|
java.rmi.server. RemoteCall
никакая замена.
|
java.rmi.server. Скелет
никакая замена. Скелеты больше не требуются для удаленных вызовов метода в Java 2 платформы v1.2 и больше.
|
javax.xml.bind. Блок проверки допустимости
начиная с JAXB 2.0
|
Класс и Описание |
---|
javax.accessibility.AccessibleResourceBundle
Этот класс осуждается с версии 1.3 Платформы Java.
|
org.xml.sax.helpers. AttributeListImpl
Этот класс реализует осуждаемый интерфейс,
AttributeList ; тот интерфейс был заменен Attributes , который реализуется в AttributesImpl класс помощника. |
javax.management. DefaultLoaderRepository
Использовать
MBeanServer.getClassLoaderRepository() вместо этого. |
javax.management.loading.DefaultLoaderRepository
Использовать
MBeanServer.getClassLoaderRepository() } вместо этого. |
javax.swing.text. DefaultTextUI |
org.omg. CORBA.DynamicImplementation
org.omg. CORBA.DynamicImplementation
|
org.xml.sax. HandlerBase
Этот класс работает с осуждаемым
DocumentHandler интерфейс. Это было заменено SAX2 DefaultHandler класс. |
java.security. Идентификационные данные
Этот класс больше не используется. Его функциональность была заменена
java.security.KeyStore , java.security.cert пакет, и java.security.Principal . |
java.security. IdentityScope
Этот класс больше не используется. Его функциональность была заменена
java.security.KeyStore , java.security.cert пакет, и java.security.Principal . |
java.io. LineNumberInputStream
Этот класс неправильно предполагает, что байты соответственно представляют символы. С JDK 1.1, привилегированный способ работать на символьных потоках через новые символьно-потоковые классы, которые включают класс для того, чтобы считать номера строки.
|
java.rmi.server. LogStream
никакая замена
|
javax.swing.plaf.metal.MetalComboBoxUI.MetalComboPopup
С Java 2 платформы v1.4.
|
java.rmi.server. Работа
никакая замена
|
org.xml.sax.helpers. ParserFactory
Этот класс работает с осуждаемым
Parser интерфейс. |
javax.security.auth. Политика
с версии 1.4 JDK - Замененный java.security. Политика. java.security. У политики есть метод:
public PermissionCollection getPermissions (java.security.ProtectionDomain pd)и у ProtectionDomain есть конструктор: public ProtectionDomain (CodeSource cs, PermissionCollection permissions, ClassLoader loader, Principal[] principals)Эти два API обеспечивают вызывающие стороны средства запросить Политику для Основанных на принципале записей Разрешения. |
org.omg. CORBA.Principal
Осуждаемый CORBA 2.2.
|
org.omg. CORBA.PrincipalHolder
Осуждаемый CORBA 2.2.
|
java.security. Подписывающее лицо
Этот класс больше не используется. Его функциональность была заменена
java.security.KeyStore , java.security.cert пакет, и java.security.Principal . |
javax.xml.soap. SOAPElementFactory
- Использовать
javax.xml.soap.SOAPFactory для того, чтобы создать SOAPElements. |
java.io. StringBufferInputStream
Этот класс должным образом не преобразовывает символы в байты. С JDK 1.1, привилегированный способ создать поток из строки через
StringReader класс. |
javax.swing.text. TableView. TableCell
Табличная ячейка может теперь быть любой реализацией Представления.
|
Исключения и Описание |
---|
java.rmi. RMISecurityException
Использовать
SecurityException вместо этого. Код программы никогда не должен непосредственно ссылаться на этот класс, и RMISecurityManager больше броски этот подкласс java.lang.SecurityException . |
java.rmi. ServerRuntimeException
никакая замена
|
java.rmi.server.SkeletonMismatchException
никакая замена. Скелеты больше не требуются для удаленных вызовов метода в Java 2 платформы v1.2 и больше.
|
java.rmi.server.SkeletonNotFoundException
никакая замена. Скелеты больше не требуются для удаленных вызовов метода в Java 2 платформы v1.2 и больше.
|
Тип аннотации и Описание |
---|
javax.jws.soap. InitParam
С JSR-181 2.0 без замены.
|
javax.jws.soap. SOAPMessageHandler
С JSR-181 2.0 без замены.
|
javax.jws.soap. SOAPMessageHandlers
С JSR-181 2.0 без замены.
|
Поле и Описание |
---|
javax.management.openmbean.OpenType.ALLOWED_CLASSNAMES
Использовать
ALLOWED_CLASSNAMES_LIST вместо этого. |
javax.management.monitor.Monitor.alreadyNotified
эквивалентный
Monitor.alreadyNotifieds [0]. |
javax.swing. JViewport.backingStore
С Java 2 платформы v1.3
|
javax.swing.plaf.basic.BasicDesktopPaneUI.closeKey
С 1.3.
|
javax.sql.rowset.CachedRowSet.COMMIT_ON_ACCEPT_CHANGES
Поскольку это поле является заключительным (это - часть интерфейса), его значение не может быть изменено.
|
java.awt. Фрейм. CROSSHAIR_CURSOR
замененный
Cursor.CROSSHAIR_CURSOR . |
javax.management.monitor. Monitor.dbgTag
Никакая замена.
|
java.awt. Фрейм. DEFAULT_CURSOR
замененный
Cursor.DEFAULT_CURSOR . |
javax.swing. JRootPane.defaultPressAction
С Java 2 платформы v1.3.
|
javax.swing.JRootPane.defaultReleaseAction
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.dividerResizeToggleKey
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.downKey
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicTabbedPaneUI.downKey
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicToolBarUI.downKey
С Java 2 платформы v1.3.
|
java.awt. Фрейм. E_RESIZE_CURSOR
замененный
Cursor.E_RESIZE_CURSOR . |
javax.swing.plaf.basic.BasicSplitPaneUI.endKey
С Java 2 платформы v1.3.
|
java.util.logging. Logger.global
Инициализация этого поля является склонной к мертвым блокировкам. Поле должно быть инициализировано инициализацией класса Регистратора, которая может вызвать мертвые блокировки с инициализацией класса LogManager. В таких случаях две инициализации класса ожидают друг друга, чтобы завершиться. Привилегированный способ получить глобальный объект регистратора через вызов
Logger.getGlobal() . Для совместимости со старыми версиями JDK, где Logger.getGlobal() не доступное использование вызов Logger.getLogger(Logger.GLOBAL_LOGGER_NAME) или Logger.getLogger("global") . |
java.awt. Фрейм. HAND_CURSOR
замененный
Cursor.HAND_CURSOR . |
javax.swing.plaf.basic.BasicSplitPaneUI.homeKey
С Java 2 платформы v1.3.
|
java.net.HttpURLConnection.HTTP_SERVER_ERROR
это неуместно и не должно было существовать.
|
java.lang. SecurityManager.inCheck
Этот тип проверки безопасности не рекомендуется. Рекомендуется что
checkPermission вызовите использоваться вместо этого. |
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardDownRightListener
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardEndListener
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardHomeListener
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardResizeToggleListener
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardUpLeftListener
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.leftKey
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicToolBarUI.leftKey
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicDesktopPaneUI.maximizeKey
С 1.3.
|
javax.swing.plaf.basic.BasicDesktopPaneUI.minimizeKey
С 1.3.
|
java.awt. Фрейм. MOVE_CURSOR
замененный
Cursor.MOVE_CURSOR . |
java.awt. Фрейм. N_RESIZE_CURSOR
замененный
Cursor.N_RESIZE_CURSOR . |
javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey
С 1.3.
|
javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey2
С 1.3.
|
java.awt. Фрейм. NE_RESIZE_CURSOR
замененный
Cursor.NE_RESIZE_CURSOR . |
java.awt. Фрейм. NW_RESIZE_CURSOR
замененный
Cursor.NW_RESIZE_CURSOR . |
javax.swing.plaf.basic.BasicInternalFrameUI.openMenuKey
С Java 2 платформы v1.3.
|
java.awt.datatransfer.DataFlavor.plainTextFlavor
с 1.3. Использовать
DataFlavor.getReaderForText(Transferable) вместо Transferable.getTransferData(DataFlavor.plainTextFlavor) . |
java.awt. Cursor.predefined
С версии 1.7 JDK,
Cursor.getPredefinedCursor(int) метод должен использоваться вместо этого. |
javax.swing.text.html. FormView. СБРОС
С 1.3, значение прибывает из свойства UIManager UIManager FormView.resetButtonText
|
javax.swing.table.TableColumn.resizedPostingDisableCount
с Java 2 платформы v1.3
|
javax.swing.plaf.basic.BasicSplitPaneUI.rightKey
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey
С Java 2 платформы v1.3.
|
javax.swing.plaf.basic.BasicToolBarUI.rightKey
С Java 2 платформы v1.3.
|
java.awt. Фрейм. S_RESIZE_CURSOR
замененный
Cursor.S_RESIZE_CURSOR . |
java.awt. Фрейм. SE_RESIZE_CURSOR
замененный
Cursor.SE_RESIZE_CURSOR . |
javax.imageio.spi.ImageReaderSpi.STANDARD_INPUT_TYPE
Вместо того, чтобы использовать это поле, непосредственно создайте эквивалентный массив
{ ImageInputStream.class } |
javax.imageio.spi.ImageWriterSpi.STANDARD_OUTPUT_TYPE
Instead of using this field, directly create the equivalent array
{ ImageOutputStream.class } |
javax.swing.text.html. FormView. ПОДЧИНИТЬСЯ
As of 1.3, value now comes from UIManager property FormView.submitButtonText
|
java.lang.Character.UnicodeBlock.SURROGATES_AREA
As of J2SE 5, use
Character.UnicodeBlock.HIGH_SURROGATES , Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES , and Character.UnicodeBlock.LOW_SURROGATES . These new constants match the block definitions of the Unicode Standard. The Character.UnicodeBlock.of(char) and Character.UnicodeBlock.of(int) methods return the new constants, not SURROGATES_AREA. |
java.awt. Фрейм. SW_RESIZE_CURSOR
replaced by
Cursor.SW_RESIZE_CURSOR . |
java.awt. Фрейм. TEXT_CURSOR
replaced by
Cursor.TEXT_CURSOR . |
javax.swing.plaf.basic.BasicSplitPaneUI.upKey
As of Java 2 platform v1.3.
|
javax.swing.plaf.basic.BasicTabbedPaneUI.upKey
As of Java 2 platform v1.3.
|
javax.swing.plaf.basic.BasicToolBarUI.upKey
As of Java 2 platform v1.3.
|
java.awt. Фрейм. W_RESIZE_CURSOR
replaced by
Cursor.W_RESIZE_CURSOR . |
java.awt. Фрейм. WAIT_CURSOR
replaced by
Cursor.WAIT_CURSOR . |
Method and Description |
---|
java.awt. Component.action (Событие, Объект)
As of JDK version 1.1, should register this component as ActionListener on component which fires action events.
|
java.awt. List.addItem (Строка)
replaced by
add(String) . |
java.awt. List.addItem (Строка, интервал)
replaced by
add(String, int) . |
java.awt. CardLayout.addLayoutComponent (Строка, Компонент)
replaced by
addLayoutComponent(Component, Object) . |
java.awt. BorderLayout.addLayoutComponent (Строка, Компонент)
replaced by
addLayoutComponent(Component, Object) . |
java.awt. List.allowsMultipleSelections ()
As of JDK version 1.1, replaced by
isMultipleMode() . |
java.lang.ThreadGroup.allowThreadSuspension (булевская переменная)
The definition of this call depends on
ThreadGroup.suspend() , which is deprecated. Further, the behavior of this call was never specified. |
java.awt. TextArea.appendText (Строка)
As of JDK version 1.1, replaced by
append(String) . |
java.awt. Window.applyResourceBundle (ResourceBundle)
As of J2SE 1.4, replaced by
Component.applyComponentOrientation . |
java.awt. Window.applyResourceBundle (Строка)
As of J2SE 1.4, replaced by
Component.applyComponentOrientation . |
java.awt. Component.bounds ()
As of JDK version 1.1, replaced by
getBounds() . |
java.lang. SecurityManager.checkMulticast (InetAddress, байт)
Use #checkPermission(java.security.Permission) instead
|
java.lang. SecurityManager.classDepth (Строка)
This type of security checking is not recommended. It is recommended that the
checkPermission call be used instead. |
java.lang.SecurityManager.classLoaderDepth ()
This type of security checking is not recommended. It is recommended that the
checkPermission call be used instead. |
java.awt. List.clear ()
As of JDK version 1.1, replaced by
removeAll() . |
java.awt.image.renderable.RenderContext.concetenateTransform (AffineTransform)
replaced by
concatenateTransform(AffineTransform) . |
java.awt. Container.countComponents ()
As of JDK version 1.1, replaced by getComponentCount().
|
java.awt. List.countItems ()
As of JDK version 1.1, replaced by
getItemCount() . |
java.awt. Choice.countItems ()
As of JDK version 1.1, replaced by
getItemCount() . |
java.awt. Menu.countItems ()
As of JDK version 1.1, replaced by
getItemCount() . |
java.awt. MenuBar.countMenus ()
As of JDK version 1.1, replaced by
getMenuCount() . |
java.lang. Thread.countStackFrames ()
The definition of this call depends on
Thread.suspend() , which is deprecated. Further, the results of this call were never well-defined. |
org.omg. CORBA.ORB.create_basic_dyn_any (TypeCode)
Use the new DynAnyFactory API instead
|
org.omg. CORBA.ORB.create_dyn_any (Любой)
Use the new DynAnyFactory API instead
|
org.omg. CORBA.ORB.create_dyn_array (TypeCode)
Use the new DynAnyFactory API instead
|
org.omg. CORBA.ORB.create_dyn_enum (TypeCode)
Use the new DynAnyFactory API instead
|
org.omg. CORBA.ORB.create_dyn_sequence (TypeCode)
Use the new DynAnyFactory API instead
|
org.omg. CORBA.ORB.create_dyn_struct (TypeCode)
Use the new DynAnyFactory API instead
|
org.omg. CORBA.ORB.create_dyn_union (TypeCode)
Use the new DynAnyFactory API instead
|
org.omg.CORBA.ORB.create_recursive_sequence_tc (интервал, интервал)
Use a combination of create_recursive_tc and create_sequence_tc instead
|
javax.xml.soap. SOAPElementFactory.create (Имя)
Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name) instead
|
javax.xml.soap. SOAPElementFactory.create (Строка)
Use javax.xml.soap.SOAPFactory.createElement(String localName) instead
|
javax.xml.soap. SOAPElementFactory.create (Строка, Строка, Строка)
Use javax.xml.soap.SOAPFactory.createElement(String localName, String prefix, String uri) instead
|
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardDownRightListener ()
As of Java 2 platform v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardEndListener ()
As of Java 2 platform v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardHomeListener ()
As of Java 2 platform v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardResizeToggleListener ()
As of Java 2 platform v1.3.
|
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardUpLeftListener ()
As of Java 2 platform v1.3.
|
javax.swing.JTable.createScrollPaneForTable (JTable)
As of Swing version 1.0.2, replaced by
new JScrollPane(aTable) . |
javax.swing.text.TableView.createTableCell (Элемент)
Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.
|
javax.xml.bind.JAXBContext.createValidator ()
since JAXB2.0
|
java.lang.SecurityManager.currentClassLoader ()
This type of security checking is not recommended. It is recommended that the
checkPermission call be used instead. |
java.lang.SecurityManager.currentLoadedClass ()
This type of security checking is not recommended. It is recommended that the
checkPermission call be used instead. |
java.net. URLDecoder.decode (Строка)
The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding.
|
java.lang. ClassLoader.defineClass (байт [], интервал, интервал)
Replaced by
defineClass(String, byte[], int, int) |
java.awt. List.delItem (интервал)
replaced by
remove(String) and remove(int) . |
java.awt. List.delItems (интервал, интервал)
As of JDK version 1.1, Not for public use in the future. This method is expected to be retained only as a package private method.
|
java.awt. Component.deliverEvent (Событие)
As of JDK version 1.1, replaced by
dispatchEvent(AWTEvent e) . |
java.awt. Container.deliverEvent (Событие)
As of JDK version 1.1, replaced by
dispatchEvent(AWTEvent e) |
javax.management. MBeanServer.deserialize (ObjectName, байт [])
Use
getClassLoaderFor to obtain the appropriate class loader for deserialization. |
javax.management. MBeanServer.deserialize (Строка, байт [])
Use
MBeanServer.getClassLoaderRepository() to obtain the class loader repository and use it to deserialize. |
javax.management. MBeanServer.deserialize (Строка, ObjectName, байт [])
Use
getClassLoader to obtain the class loader for deserialization. |
java.lang. Thread.destroy ()
This method was originally designed to destroy this thread without any cleanup. Any monitors it held would have remained locked. However, the method was never implemented. If if were to be implemented, it would be deadlock-prone in much the manner of
Thread.suspend() . If the target thread held a lock protecting a critical system resource when it was destroyed, no thread could ever access this resource again. If another thread ever attempted to lock this resource, deadlock would result. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.awt. Component.disable ()
As of JDK version 1.1, replaced by
setEnabled(boolean) . |
java.awt. MenuItem.disable ()
As of JDK version 1.1, replaced by
setEnabled(boolean) . |
javax.swing. JComponent.disable ()
As of JDK version 1.1, replaced by
java.awt.Component.setEnabled(boolean) . |
javax.swing.table.TableColumn.disableResizedPosting ()
as of Java 2 platform v1.3
|
javax.swing.FocusManager.disableSwingFocusManager ()
as of 1.4, replaced by
KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy) |
java.rmi.server. Skeleton.dispatch (Удаленный, RemoteCall, интервал, долго)
no replacement
|
java.rmi.server. RemoteCall.done ()
no replacement
|
java.rmi.server. RemoteRef.done (RemoteCall)
1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (
newCall , invoke , and done ), a stub uses a single method, invoke(Remote, Method, Object[], int) , on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. |
javax.swing.plaf.metal.MetalComboBoxUI.editablePropertyChanged (PropertyChangeEvent)
As of Java 2 platform v1.4.
|
java.awt. Component.enable ()
As of JDK version 1.1, replaced by
setEnabled(boolean) . |
java.awt. MenuItem.enable ()
As of JDK version 1.1, replaced by
setEnabled(boolean) . |
javax.swing. JComponent.enable ()
As of JDK version 1.1, replaced by
java.awt.Component.setEnabled(boolean) . |
java.awt. Component.enable (булевская переменная)
As of JDK version 1.1, replaced by
setEnabled(boolean) . |
java.awt. MenuItem.enable (булевская переменная)
As of JDK version 1.1, replaced by
setEnabled(boolean) . |
javax.swing.table.TableColumn.enableResizedPosting ()
as of Java 2 platform v1.3
|
java.net. URLEncoder.encode (Строка)
The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding.
|
java.security.SignatureSpi.engineGetParameter (Строка) |
java.security.SignatureSpi.engineSetParameter (Строка, Объект)
Replaced by
engineSetParameter . |
java.awt.datatransfer. DataFlavor.equals (Строка)
As inconsistent with
hashCode() contract, use isMimeTypeEqual(String) instead. |
org.omg. CORBA.ServerRequest.except (Любой)
use set_exception()
|
java.rmi.server. RemoteCall.executeCall ()
no replacement
|
org.omg. CORBA.Any.extract_Principal ()
Deprecated by CORBA 2.2.
|
javax.swing.SwingUtilities.findFocusOwner (Компонент)
As of 1.4, replaced by
KeyboardFocusManager.getFocusOwner() . |
org.omg. CORBA.ORB.get_current ()
use
resolve_initial_references . |
java.security.Security.getAlgorithmProperty (Строка, Строка)
This method used to return the value of a proprietary property in the master file of the "SUN" Cryptographic Service Provider in order to determine how to parse algorithm-specific parameters. Use the new provider-based and algorithm-independent
AlgorithmParameters and KeyFactory engine classes (introduced in the J2SE version 1.2 platform) instead. |
java.sql. CallableStatement.getBigDecimal (интервал, интервал)
use
getBigDecimal(int parameterIndex) or getBigDecimal(String parameterName) |
java.sql. ResultSet.getBigDecimal (интервал, интервал) |
java.sql. ResultSet.getBigDecimal (Строка, интервал) |
java.awt. Polygon.getBoundingBox ()
As of JDK version 1.1, replaced by
getBounds() . |
java.lang. String.getBytes (интервал, интервал, байт [], интервал)
This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the
String.getBytes() method, which uses the platform's default charset. |
java.awt. Graphics.getClipRect ()
As of JDK version 1.1, replaced by
getClipBounds() . |
javax.swing.JPopupMenu.getComponentAtIndex (интервал)
replaced by
Container.getComponent(int) |
javax.swing. JMenuBar.getComponentAtIndex (интервал)
replaced by
getComponent(int i) |
java.awt. CheckboxGroup.getCurrent ()
As of JDK version 1.1, replaced by
getSelectedCheckbox() . |
java.awt. Frame.getCursorType ()
As of JDK version 1.1, replaced by
Component.getCursor() . |
java.sql. Time.getDate () |
java.util. Date.getDate ()
As of JDK version 1.1, replaced by
Calendar.get(Calendar.DAY_OF_MONTH) . |
java.sql. Time.getDay () |
java.util. Date.getDay ()
As of JDK version 1.1, replaced by
Calendar.get(Calendar.DAY_OF_WEEK) . |
java.net.URLConnection.getDefaultRequestProperty (Строка)
The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained.
|
java.rmi.server.LogStream.getDefaultStream ()
no replacement
|
javax.management.monitor.CounterMonitorMBean.getDerivedGauge ()
As of JMX 1.2, replaced by
CounterMonitorMBean.getDerivedGauge(ObjectName) |
javax.management.monitor.GaugeMonitorMBean.getDerivedGauge ()
As of JMX 1.2, replaced by
GaugeMonitorMBean.getDerivedGauge(ObjectName) |
javax.management.monitor.CounterMonitor.getDerivedGauge ()
As of JMX 1.2, replaced by
CounterMonitor.getDerivedGauge(ObjectName) |
javax.management.monitor.GaugeMonitor.getDerivedGauge ()
As of JMX 1.2, replaced by
GaugeMonitor.getDerivedGauge(ObjectName) |
javax.management.monitor.StringMonitor.getDerivedGauge ()
As of JMX 1.2, replaced by
StringMonitor.getDerivedGauge(ObjectName) |
javax.management.monitor.StringMonitorMBean.getDerivedGauge ()
As of JMX 1.2, replaced by
StringMonitorMBean.getDerivedGauge(ObjectName) |
javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp ()
As of JMX 1.2, replaced by
CounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) |
javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp ()
As of JMX 1.2, replaced by
GaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) |
javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp ()
As of JMX 1.2, replaced by
CounterMonitor.getDerivedGaugeTimeStamp(ObjectName) |
javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp ()
As of JMX 1.2, replaced by
GaugeMonitor.getDerivedGaugeTimeStamp(ObjectName) |
javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp ()
As of JMX 1.2, replaced by
StringMonitor.getDerivedGaugeTimeStamp(ObjectName) |
javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp ()
As of JMX 1.2, replaced by
StringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) |
javax.swing.plaf.basic.BasicSplitPaneUI.getDividerBorderSize ()
As of Java 2 platform v1.3, instead set the border on the divider.
|
javax.xml.bind. Validator.getEventHandler ()
since JAXB2.0
|
java.awt. Toolkit.getFontList () |
javax.swing.text.LabelView.getFontMetrics ()
FontMetrics are not used for glyph rendering when running in the JDK.
|
java.awt. Toolkit.getFontMetrics (Шрифт)
As of JDK version 1.2, replaced by the
Font method getLineMetrics . |
java.awt. Toolkit.getFontPeer (Строка, интервал)
see java.awt.GraphicsEnvironment#getAllFonts
|
java.sql. Date.getHours () |
java.util. Date.getHours ()
As of JDK version 1.1, replaced by
Calendar.get(Calendar.HOUR_OF_DAY) . |
java.lang. SecurityManager.getInCheck ()
This type of security checking is not recommended. It is recommended that the
checkPermission call be used instead. |
java.rmi.server.RemoteCall.getInputStream ()
no replacement
|
javax.swing. KeyStroke.getKeyStroke (случайная работа, булевская переменная)
use getKeyStroke(char)
|
javax.swing. AbstractButton.getLabel ()
- Replaced by
getText |
java.awt. Scrollbar.getLineIncrement ()
As of JDK version 1.1, replaced by
getUnitIncrement() . |
java.lang.Runtime.getLocalizedInputStream (InputStream)
As of JDK 1.1, the preferred way to translate a byte stream in the local encoding into a character stream in Unicode is via the
InputStreamReader and BufferedReader classes. |
java.lang.Runtime.getLocalizedOutputStream (OutputStream)
As of JDK 1.1, the preferred way to translate a Unicode character stream into a byte stream in the local encoding is via the
OutputStreamWriter , BufferedWriter , and PrintWriter classes. |
java.sql. DriverManager.getLogStream () |
java.awt. FontMetrics.getMaxDecent ()
As of JDK version 1.1.1, replaced by
getMaxDescent() . |
javax.swing. JInternalFrame.getMenuBar ()
As of Swing version 1.0.3, replaced by
getJMenuBar() . |
javax.swing. JRootPane.getMenuBar ()
As of Swing version 1.0.3 replaced by
getJMenuBar() . |
java.sql. Date.getMinutes () |
java.util. Date.getMinutes ()
As of JDK version 1.1, replaced by
Calendar.get(Calendar.MINUTE) . |
java.sql. Time.getMonth () |
java.util. Date.getMonth ()
As of JDK version 1.1, replaced by
Calendar.get(Calendar.MONTH) . |
javax.swing.JComponent.getNextFocusableComponent ()
As of 1.4, replaced by
FocusTraversalPolicy . |
javax.management.monitor.Monitor.getObservedObject ()
As of JMX 1.2, replaced by
Monitor.getObservedObjects() |
javax.management.monitor.MonitorMBean.getObservedObject ()
As of JMX 1.2, replaced by
MonitorMBean.getObservedObjects() |
java.rmi.server. Operation.getOperation ()
no replacement
|
java.rmi.server. Skeleton.getOperations ()
no replacement
|
java.awt.ComponentOrientation.getOrientation (ResourceBundle)
As of J2SE 1.4, use
ComponentOrientation.getOrientation(java.util.Locale) . |
java.rmi.server.RemoteCall.getOutputStream ()
no replacement
|
java.rmi.server.LogStream.getOutputStream ()
no replacement
|
java.awt. Scrollbar.getPageIncrement ()
As of JDK version 1.1, replaced by
getBlockIncrement() . |
java.security. Signature.getParameter (Строка) |
java.awt. MenuComponent.getPeer ()
As of JDK version 1.1, programs should not directly manipulate peers.
|
java.awt. Component.getPeer ()
As of JDK version 1.1, programs should not directly manipulate peers; replaced by
boolean isDisplayable() . |
java.awt. Font.getPeer ()
Font rendering is now platform independent.
|
javax.xml.bind. Validator.getProperty (Строка)
since JAXB2.0
|
java.rmi.server.RemoteCall.getResultStream (булевская переменная)
no replacement
|
java.sql. Date.getSeconds () |
java.util. Date.getSeconds ()
As of JDK version 1.1, replaced by
Calendar.get(Calendar.SECOND) . |
java.rmi.server.LoaderHandler.getSecurityContext (ClassLoder)
no replacement
|
java.rmi.server.RMIClassLoader.getSecurityContext (ClassLoder)
no replacement. As of the Java 2 platform v1.2, RMI no longer uses this method to obtain a class loader's security context.
|
javax.swing. JList.getSelectedValues ()
As of JDK 1.7, replaced by
JList.getSelectedValuesList() |
javax.swing. JPasswordField.getText ()
As of Java 2 platform v1.2, replaced by
getPassword . |
javax.swing. JPasswordField.getText (интервал, интервал)
As of Java 2 platform v1.2, replaced by
getPassword . |
javax.management.monitor.CounterMonitorMBean.getThreshold ()
As of JMX 1.2, replaced by
CounterMonitorMBean.getThreshold(ObjectName) |
javax.management.monitor.CounterMonitor.getThreshold ()
As of JMX 1.2, replaced by
CounterMonitor.getThreshold(ObjectName) |
java.util. Date.getTimezoneOffset ()
As of JDK version 1.1, replaced by
-(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000) . |
java.net. DatagramSocketImpl.getTTL ()
use getTimeToLive instead.
|
java.net. MulticastSocket.getTTL ()
use the getTimeToLive method instead, which returns an int instead of a byte.
|
java.sql. ResultSet.getUnicodeStream (интервал)
use
getCharacterStream in place of getUnicodeStream |
java.sql. ResultSet.getUnicodeStream (Строка)
use
getCharacterStream instead |
javax.swing.ScrollPaneLayout.getViewportBorderBounds (JScrollPane)
As of JDK version Swing1.1 replaced by
JScrollPane.getViewportBorderBounds() . |
java.awt. Scrollbar.getVisible ()
As of JDK version 1.1, replaced by
getVisibleAmount() . |
java.sql. Time.getYear () |
java.util. Date.getYear ()
As of JDK version 1.1, replaced by
Calendar.get(Calendar.YEAR) - 1900 . |
java.awt. Component.gotFocus (Событие, Объект)
As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).
|
java.awt. Component.handleEvent (Событие)
As of JDK version 1.1 replaced by processEvent(AWTEvent).
|
java.awt. Window.hide ()
As of JDK version 1.5, replaced by
Window.setVisible(boolean) . |
java.awt. Component.hide ()
As of JDK version 1.1, replaced by
setVisible(boolean) . |
java.awt. Dialog.hide ()
As of JDK version 1.5, replaced by
setVisible(boolean) . |
java.lang. SecurityManager.inClass (Строка)
This type of security checking is not recommended. It is recommended that the
checkPermission call be used instead. |
java.lang. SecurityManager.inClassLoader ()
This type of security checking is not recommended. It is recommended that the
checkPermission call be used instead. |
org.omg. CORBA.Any.insert_Principal (Принципал)
Deprecated by CORBA 2.2.
|
javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry (JEditorPane, HTMLDocument, интервал, Элемент, Строка, HTML.Tag, HTML.Tag)
As of Java 2 platform v1.3, use insertAtBoundary
|
java.awt. TextArea.insertText (Строка, интервал)
As of JDK version 1.1, replaced by
insert(String, int) . |
java.awt. Container.insets ()
As of JDK version 1.1, replaced by
getInsets() . |
java.awt. Rectangle.inside (интервал, интервал)
As of JDK version 1.1, replaced by
contains(int, int) . |
java.awt. Polygon.inside (интервал, интервал)
As of JDK version 1.1, replaced by
contains(int, int) . |
java.awt. Component.inside (интервал, интервал)
As of JDK version 1.1, replaced by contains(int, int).
|
java.rmi.server. RemoteRef.invoke (RemoteCall)
1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (
newCall , invoke , and done ), a stub uses a single method, invoke(Remote, Method, Object[], int) , on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. |
org.omg.CORBA.DynamicImplementation.invoke (ServerRequest)
Deprecated by Portable Object Adapter
|
javax.swing.JViewport.isBackingStoreEnabled ()
As of Java 2 platform v1.3, replaced by
getScrollMode() . |
javax.swing.FocusManager.isFocusManagerEnabled ()
As of 1.4, replaced by
KeyboardFocusManager.getDefaultFocusTraversalPolicy() |
java.awt. Component.isFocusTraversable ()
As of 1.4, replaced by
isFocusable() . |
java.lang. Character.isJavaLetter (случайная работа)
Replaced by isJavaIdentifierStart(char).
|
java.lang. Character.isJavaLetterOrDigit (случайная работа)
Replaced by isJavaIdentifierPart(char).
|
javax.swing. JComponent.isManagingFocus ()
As of 1.4, replaced by
Component.setFocusTraversalKeys(int, Set) and Container.setFocusCycleRoot(boolean) . |
java.awt. List.isSelected (интервал)
As of JDK version 1.1, replaced by
isIndexSelected(int) . |
java.lang. Character.isSpace (случайная работа)
Replaced by isWhitespace(char).
|
java.rmi.dgc. VMID.isUnique () |
javax.xml.bind. Unmarshaller.isValidating ()
since JAXB2.0, please see
Unmarshaller.getSchema() |
java.awt. Component.keyDown (Событие, интервал)
As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).
|
java.awt. Component.keyUp (Событие, интервал)
As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).
|
java.awt. Component.layout ()
As of JDK version 1.1, replaced by
doLayout() . |
java.awt. Container.layout ()
As of JDK version 1.1, replaced by
doLayout() . |
java.awt. ScrollPane.layout ()
As of JDK version 1.1, replaced by
doLayout() . |
java.rmi.server. LoaderHandler.loadClass (Строка)
no replacement
|
java.rmi.server. RMIClassLoader.loadClass (Строка)
replaced by
loadClass(String,String) method |
java.rmi.server. LoaderHandler.loadClass (URL, Строка)
no replacement
|
java.awt. Component.locate (интервал, интервал)
As of JDK version 1.1, replaced by getComponentAt(int, int).
|
java.awt. Container.locate (интервал, интервал)
As of JDK version 1.1, replaced by
getComponentAt(int, int) . |
java.awt. Component.location ()
As of JDK version 1.1, replaced by
getLocation() . |
java.rmi.server.LogStream.log (Строка)
no replacement
|
java.awt. Component.lostFocus (Событие, Объект)
As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).
|
java.awt. List.minimumSize ()
As of JDK version 1.1, replaced by
getMinimumSize() . |
java.awt. Component.minimumSize ()
As of JDK version 1.1, replaced by
getMinimumSize() . |
java.awt. TextField.minimumSize ()
As of JDK version 1.1, replaced by
getMinimumSize() . |
java.awt. Container.minimumSize ()
As of JDK version 1.1, replaced by
getMinimumSize() . |
java.awt. TextArea.minimumSize ()
As of JDK version 1.1, replaced by
getMinimumSize() . |
java.awt. List.minimumSize (интервал)
As of JDK version 1.1, replaced by
getMinimumSize(int) . |
java.awt. TextField.minimumSize (интервал)
As of JDK version 1.1, replaced by
getMinimumSize(int) . |
java.awt. TextArea.minimumSize (интервал, интервал)
As of JDK version 1.1, replaced by
getMinimumSize(int, int) . |
javax.swing.text. View.modelToView (интервал, Форма) |
java.awt. Component.mouseDown (Событие, интервал, интервал)
As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
|
java.awt. Component.mouseDrag (Событие, интервал, интервал)
As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).
|
java.awt. Component.mouseEnter (Событие, интервал, интервал)
As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
|
java.awt. Component.mouseExit (Событие, интервал, интервал)
As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
|
java.awt. Component.mouseMove (Событие, интервал, интервал)
As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).
|
java.awt. Component.mouseUp (Событие, интервал, интервал)
As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
|
java.awt. Rectangle.move (интервал, интервал)
As of JDK version 1.1, replaced by
setLocation(int, int) . |
java.awt. Component.move (интервал, интервал)
As of JDK version 1.1, replaced by
setLocation(int, int) . |
org.omg. CORBA.Principal.name ()
Deprecated by CORBA 2.2.
|
org.omg. CORBA.Principal.name (байт [])
Deprecated by CORBA 2.2.
|
java.rmi.server. RemoteRef.newCall (RemoteObject, Работа [], интервал, долго)
1.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference (
newCall , invoke , and done ), a stub uses a single method, invoke(Remote, Method, Object[], int) , on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. |
javax.xml.stream.XMLOutputFactory.newInstance (Строка, ClassLoder)
This method has been deprecated because it returns an instance of XMLInputFactory, which is of the wrong class. Use the new method
XMLOutputFactory.newFactory(java.lang.String, java.lang.ClassLoader) instead. |
javax.xml.stream.XMLInputFactory.newInstance (Строка, ClassLoder)
This method has been deprecated to maintain API consistency. All newInstance methods have been replaced with corresponding newFactory methods. The replacement
XMLInputFactory.newFactory(java.lang.String, java.lang.ClassLoader) method defines no changes in behavior. |
javax.xml.stream.XMLEventFactory.newInstance (Строка, ClassLoder)
This method has been deprecated to maintain API consistency. All newInstance methods have been replaced with corresponding newFactory methods. The replacement
XMLEventFactory.newFactory(java.lang.String, java.lang.ClassLoader) method defines no changes in behavior. |
java.awt. Component.nextFocus ()
As of JDK version 1.1, replaced by transferFocus().
|
java.awt.datatransfer.DataFlavor.normalizeMimeType (Строка) |
javax.activation.ActivationDataFlavor.normalizeMimeType (Строка) |
java.awt.datatransfer.DataFlavor.normalizeMimeTypeParameter (Строка, Строка) |
javax.activation.ActivationDataFlavor.normalizeMimeTypeParameter (Строка, Строка) |
javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange (Вектор, TreePath)
As of JDK version 1.7
|
org.omg. CORBA.ServerRequest.op_name ()
use operation()
|
org.omg. CORBA.ServerRequest.params (NVList)
use the method
arguments |
java.util. Date.parse (Строка)
As of JDK version 1.1, replaced by
DateFormat.parse(String s) . |
java.rmi.server. LogStream.parseLevel (Строка)
no replacement
|
java.awt. MenuComponent.postEvent (Событие)
As of JDK version 1.1, replaced by
dispatchEvent . |
java.awt. MenuContainer.postEvent (Событие)
As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).
|
java.awt. Window.postEvent (Событие)
As of JDK version 1.1 replaced by
dispatchEvent(AWTEvent) . |
java.awt. Component.postEvent (Событие)
As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).
|
java.awt.image.renderable.RenderContext.preConcetenateTransform (AffineTransform)
replaced by
preConcatenateTransform(AffineTransform) . |
java.awt. List.preferredSize ()
As of JDK version 1.1, replaced by
getPreferredSize() . |
java.awt. Component.preferredSize ()
As of JDK version 1.1, replaced by
getPreferredSize() . |
java.awt. TextField.preferredSize ()
As of JDK version 1.1, replaced by
getPreferredSize() . |
java.awt. Container.preferredSize ()
As of JDK version 1.1, replaced by
getPreferredSize() . |
java.awt. TextArea.preferredSize ()
As of JDK version 1.1, replaced by
getPreferredSize() . |
java.awt. List.preferredSize (интервал)
As of JDK version 1.1, replaced by
getPreferredSize(int) . |
java.awt. TextField.preferredSize (интервал)
As of JDK version 1.1, replaced by
getPreferredSize(int) . |
java.awt. TextArea.preferredSize (интервал, интервал)
As of JDK version 1.1, replaced by
getPreferredSize(int, int) . |
org.omg.CORBA.portable.InputStream.read_Principal ()
Deprecated by CORBA 2.2.
|
java.io. ObjectInputStream.readLine ()
This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives.
|
java.io. DataInputStream.readLine ()
This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the
BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form: with:DataInputStream d = new DataInputStream(in); BufferedReader d = new BufferedReader(new InputStreamReader(in)); |
java.rmi.registry.RegistryHandler.registryImpl (интервал)
no replacement. As of the Java 2 platform v1.2, RMI no longer uses the
RegistryHandler to obtain the registry's implementation. |
java.rmi.registry.RegistryHandler.registryStub (Строка, интервал)
no replacement. As of the Java 2 platform v1.2, RMI no longer uses the
RegistryHandler to obtain the registry's stub. |
java.rmi.server.RemoteCall.releaseInputStream ()
no replacement
|
java.rmi.server.RemoteCall.releaseOutputStream ()
no replacement
|
javax.swing.plaf.metal.MetalComboBoxUI.removeListeners ()
As of Java 2 platform v1.4.
|
java.awt. TextArea.replaceText (Строка, интервал, интервал)
As of JDK version 1.1, replaced by
replaceRange(String, int, int) . |
javax.swing.JComponent.requestDefaultFocus ()
As of 1.4, replaced by
FocusTraversalPolicy.getDefaultComponent(Container).requestFocus() |
java.awt. Rectangle.reshape (интервал, интервал, интервал, интервал)
As of JDK version 1.1, replaced by
setBounds(int, int, int, int) . |
java.awt. Window.reshape (интервал, интервал, интервал, интервал)
As of JDK version 1.1, replaced by
setBounds(int, int, int, int) . |
java.awt. Component.reshape (интервал, интервал, интервал, интервал)
As of JDK version 1.1, replaced by
setBounds(int, int, int, int) . |
javax.swing. JComponent.reshape (интервал, интервал, интервал, интервал)
As of JDK 5, replaced by
Component.setBounds(int, int, int, int) . Moves and resizes this component. |
java.awt. Component.resize (Размерность)
As of JDK version 1.1, replaced by
setSize(Dimension) . |
java.awt. Rectangle.resize (интервал, интервал)
As of JDK version 1.1, replaced by
setSize(int, int) . |
java.awt. Component.resize (интервал, интервал)
As of JDK version 1.1, replaced by
setSize(int, int) . |
org.omg. CORBA.ServerRequest.result (Любой)
use the method
set_result |
java.lang. Thread.resume ()
This method exists solely for use with
Thread.suspend() , which has been deprecated because it is deadlock-prone. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.lang. ThreadGroup.resume ()
This method is used solely in conjunction with Thread.suspend and ThreadGroup.suspend, both of which have been deprecated, as they are inherently deadlock-prone. See
Thread.suspend() for details. |
java.lang. Runtime.runFinalizersOnExit (булевская переменная)
This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock.
|
java.lang. System.runFinalizersOnExit (булевская переменная)
This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock.
|
java.util. Properties.save (OutputStream, Строка)
This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via the
store(OutputStream out, String comments) method or the storeToXML(OutputStream os, String comment) method. |
java.net. MulticastSocket.send (DatagramPacket, байт)
Use the following code or its equivalent instead: ...... int ttl = mcastSocket.getTimeToLive(); mcastSocket.setTimeToLive(newttl); mcastSocket.send(p); mcastSocket.setTimeToLive(ttl); ......
|
javax.swing.JViewport.setBackingStoreEnabled (булевская переменная)
As of Java 2 platform v1.3, replaced by
setScrollMode() . |
java.awt. CheckboxGroup.setCurrent (Флажок)
As of JDK version 1.1, replaced by
setSelectedCheckbox(Checkbox) . |
java.awt. Frame.setCursor (интервал)
As of JDK version 1.1, replaced by
Component.setCursor(Cursor) . |
java.sql. Time.setDate (интервал) |
java.util. Date.setDate (интервал)
As of JDK version 1.1, replaced by
Calendar.set(Calendar.DAY_OF_MONTH, int date) . |
java.net.URLConnection.setDefaultRequestProperty (Строка, Строка)
The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained. Invoking this method will have no effect.
|
java.rmi.server.LogStream.setDefaultStream (PrintStream)
no replacement
|
java.awt. TextField.setEchoCharacter (случайная работа)
As of JDK version 1.1, replaced by
setEchoChar(char) . |
javax.xml.bind. Validator.setEventHandler (ValidationEventHandler)
since JAXB2.0
|
java.sql. Date.setHours (интервал) |
java.util. Date.setHours (интервал)
As of JDK version 1.1, replaced by
Calendar.set(Calendar.HOUR_OF_DAY, int hours) . |
javax.swing. AbstractButton.setLabel (Строка)
- Replaced by
setText(text) |
java.awt. Scrollbar.setLineIncrement (интервал)
As of JDK version 1.1, replaced by
setUnitIncrement(int) . |
java.sql. DriverManager.setLogStream (PrintStream) |
javax.management.AttributeValueExp.setMBeanServer (MBeanServer)
This method has no effect. The MBean Server used to obtain an attribute value is
QueryEval.getMBeanServer() . |
javax.management. ValueExp.setMBeanServer (MBeanServer)
This method is not needed because a
ValueExp can access the MBean server in which it is being evaluated by using QueryEval.getMBeanServer() . |
javax.management.StringValueExp.setMBeanServer (MBeanServer) |
javax.swing. JInternalFrame.setMenuBar (JMenuBar)
As of Swing version 1.0.3 replaced by
setJMenuBar(JMenuBar m) . |
javax.swing. JRootPane.setMenuBar (JMenuBar)
As of Swing version 1.0.3 replaced by
setJMenuBar(JMenuBar menu) . |
java.sql. Date.setMinutes (интервал) |
java.util. Date.setMinutes (интервал)
As of JDK version 1.1, replaced by
Calendar.set(Calendar.MINUTE, int minutes) . |
java.awt.event. KeyEvent.setModifiers (интервал)
as of JDK1.1.4
|
java.sql. Time.setMonth (интервал) |
java.util. Date.setMonth (интервал)
As of JDK version 1.1, replaced by
Calendar.set(Calendar.MONTH, int month) . |
java.awt. List.setMultipleSelections (булевская переменная)
As of JDK version 1.1, replaced by
setMultipleMode(boolean) . |
javax.swing.JComponent.setNextFocusableComponent (Компонент)
As of 1.4, replaced by
FocusTraversalPolicy |
javax.management.monitor.Monitor.setObservedObject (Имя объекта)
As of JMX 1.2, replaced by
Monitor.addObservedObject(javax.management.ObjectName) |
javax.management.monitor.MonitorMBean.setObservedObject (Имя объекта)
As of JMX 1.2, replaced by
MonitorMBean.addObservedObject(javax.management.ObjectName) |
java.rmi.server.LogStream.setOutputStream (OutputStream)
no replacement
|
java.awt. Scrollbar.setPageIncrement (интервал)
As of JDK version 1.1, replaced by
setBlockIncrement() . |
java.security. Signature.setParameter (Строка, Объект)
Use
setParameter . |
javax.xml.bind. Validator.setProperty (Строка, Объект)
since JAXB2.0
|
java.rmi.server. RemoteStub.setRef (RemoteStub, RemoteRef)
no replacement. The
setRef method is not needed since RemoteStub s can be created with the RemoteStub(RemoteRef) constructor. |
java.sql. Date.setSeconds (интервал) |
java.util. Date.setSeconds (интервал)
As of JDK version 1.1, replaced by
Calendar.set(Calendar.SECOND, int seconds) . |
javax.management.monitor.CounterMonitorMBean.setThreshold (Число)
As of JMX 1.2, replaced by
CounterMonitorMBean.setInitThreshold(java.lang.Number) |
javax.management.monitor.CounterMonitor.setThreshold (Число)
As of JMX 1.2, replaced by
CounterMonitor.setInitThreshold(java.lang.Number) |
java.net. DatagramSocketImpl.setTTL (байт)
use setTimeToLive instead.
|
java.net. MulticastSocket.setTTL (байт)
use the setTimeToLive method instead, which uses int instead of byte as the type for ttl.
|
java.sql.PreparedStatement.setUnicodeStream (интервал, InputStream, интервал) |
javax.sql.rowset.BaseRowSet.setUnicodeStream (интервал, InputStream, интервал)
getCharacterStream should be used in its place
|
java.net. URLStreamHandler.setURL (URL, Строка, Строка, интервал, Строка, Строка)
Use setURL(URL, String, String, int, String, String, String, String);
|
javax.xml.bind.Unmarshaller.setValidating (булевская переменная)
since JAXB2.0, please see
Unmarshaller.setSchema(javax.xml.validation.Schema) |
java.sql. Time.setYear (интервал) |
java.util. Date.setYear (интервал)
As of JDK version 1.1, replaced by
Calendar.set(Calendar.YEAR, year + 1900) . |
java.awt. Window.show ()
As of JDK version 1.5, replaced by
Window.setVisible(boolean) . |
java.awt. Component.show ()
As of JDK version 1.1, replaced by
setVisible(boolean) . |
java.awt. Dialog.show ()
As of JDK version 1.5, replaced by
setVisible(boolean) . |
java.awt. Component.show (булевская переменная)
As of JDK version 1.1, replaced by
setVisible(boolean) . |
java.awt. Component.size ()
As of JDK version 1.1, replaced by
getSize() . |
javax.swing. JTable.sizeColumnsToFit (булевская переменная)
As of Swing version 1.0.3, replaced by
doLayout() . |
java.lang. Thread.stop ()
This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the unchecked
ThreadDeath exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses of stop should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), the interrupt method should be used to interrupt the wait. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.lang. ThreadGroup.stop ()
This method is inherently unsafe. See
Thread.stop() for details. |
java.lang. Thread.stop (Throwable)
This method is inherently unsafe. See
Thread.stop() for details. An additional danger of this method is that it may be used to generate exceptions that the target thread is unprepared to handle (including checked exceptions that the thread could not possibly throw, were it not for this method). For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.lang. Thread.suspend ()
This method has been deprecated, as it is inherently deadlock-prone. If the target thread holds a lock on the monitor protecting a critical system resource when it is suspended, no thread can access this resource until the target thread is resumed. If the thread that would resume the target thread attempts to lock this monitor prior to calling
resume , deadlock results. Such deadlocks typically manifest themselves as "frozen" processes. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.lang. ThreadGroup.suspend ()
This method is inherently deadlock-prone. See
Thread.suspend() for details. |
java.util. Date.toGMTString ()
As of JDK version 1.1, replaced by
DateFormat.format(Date date) , using a GMT TimeZone . |
java.util. Date.toLocaleString ()
As of JDK version 1.1, replaced by
DateFormat.format(Date date) . |
java.rmi.server. Operation.toString ()
no replacement
|
java.rmi.server. LogStream.toString ()
no replacement
|
java.io. ByteArrayOutputStream.toString (интервал)
This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the
toString(String enc) method, which takes an encoding-name argument, or the toString() method, which uses the platform's default character encoding. |
java.io. File.toURL () |
javax.swing.plaf.metal.MetalScrollPaneUI.uninstallListeners (JScrollPane)
- Replaced by
MetalScrollPaneUI.uninstallListeners(JComponent) |
java.util. Дата. UTC (интервал, интервал, интервал, интервал, интервал, интервал)
As of JDK version 1.1, replaced by
Calendar.set(year + 1900, month, date, hrs, min, sec) or GregorianCalendar(year + 1900, month, date, hrs, min, sec) , using a UTC TimeZone , followed by Calendar.getTime().getTime() . |
javax.xml.bind. Validator.validate (Объект)
since JAXB2.0
|
javax.xml.bind. Validator.validateRoot (Объект)
since JAXB2.0
|
javax.swing.text. View.viewToModel (плавание, плавание, Форма) |
org.omg.CORBA.portable.OutputStream.write_Principal (Принципал)
Deprecated by CORBA 2.2.
|
java.rmi.server. LogStream.write (байт [], интервал, интервал)
no replacement
|
java.rmi.server. LogStream.write (интервал)
no replacement
|
java.io.ObjectOutputStream.PutField.write (ObjectOutput)
This method does not write the values contained by this
PutField object in a proper format, and may result in corruption of the serialization stream. The correct way to write PutField data is by calling the ObjectOutputStream.writeFields() method. |
Constructor and Description |
---|
javax.management. AttributeValueExp ()
An instance created with this constructor cannot be used in a query.
|
java.sql. Дата (интервал, интервал, интервал)
instead use the constructor
Date(long date) |
java.util. Дата (интервал, интервал, интервал)
As of JDK version 1.1, replaced by
Calendar.set(year + 1900, month, date) or GregorianCalendar(year + 1900, month, date) . |
java.util. Дата (интервал, интервал, интервал, интервал, интервал)
As of JDK version 1.1, replaced by
Calendar.set(year + 1900, month, date, hrs, min) or GregorianCalendar(year + 1900, month, date, hrs, min) . |
java.util. Дата (интервал, интервал, интервал, интервал, интервал, интервал)
As of JDK version 1.1, replaced by
Calendar.set(year + 1900, month, date, hrs, min, sec) or GregorianCalendar(year + 1900, month, date, hrs, min, sec) . |
java.util. Дата (Строка)
As of JDK version 1.1, replaced by
DateFormat.parse(String s) . |
java.awt.event. KeyEvent (Компонент, интервал, долго, интервал, интервал)
as of JDK1.1
|
java.rmi.server. Работа (Строка)
no replacement
|
java.rmi. RMISecurityException (Строка)
no replacement
|
java.rmi. RMISecurityException (Строка, Строка)
no replacement
|
java.rmi. ServerRuntimeException (Строка, Исключение)
no replacement
|
java.rmi.server.SkeletonMismatchException (Строка)
no replacement
|
java.net. Сокет (InetAddress, интервал, булевская переменная)
Use DatagramSocket instead for UDP transport.
|
java.net. Сокет (Строка, интервал, булевская переменная)
Use DatagramSocket instead for UDP transport.
|
java.io. StreamTokenizer (InputStream)
As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example:
Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r); |
java.lang. Строка (байт [], интервал)
This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the
String constructors that take a Charset , charset name, or that use the platform's default charset. |
java.lang. Строка (байт [], интервал, интервал, интервал)
This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the
String constructors that take a Charset , charset name, or that use the platform's default charset. |
org.omg. CORBA.TCKind (интервал)
Do not use this constructor as this method should be private according to the OMG specification. Use
TCKind.from_int(int) instead. |
java.sql. Время (интервал, интервал, интервал)
Use the constructor that takes a milliseconds value in place of this constructor
|
java.sql. Метка времени (интервал, интервал, интервал, интервал, интервал, интервал, интервал)
instead use the constructor
Timestamp(long millis) |
Annotation Type Element and Description |
---|
javax.jws. HandlerChain.name
As of JSR-181 2.0 with no replacement.
|
For further API reference and developer documentation, see
Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.