草庐IT

E_DEPRECATED

全部标签

java - 代码编译时遇到警告信息 "uses or overrides a deprecated API"

我编译了我的程序,但出现了以下错误。我该如何解决?Note:ClientThreadClients.javausesoroverridesadeprecatedAPI.Note:Recompilewith-Xlint:deprecationfordetails. 最佳答案 您应该做的是按照警告信息所说的去做。使用-Xlint:deprecation选项重新编译该类。然后,编译器会告诉您正在使用或覆盖哪些已弃用的API。怎么做?如果您使用javac从命令shell进行编译,只需将-Xlint:deprecation选项添加到命令行即可

python 2.7 : replace method of string object deprecated

我的“同事”刚刚告诉我,字符串对象的replace方法已被弃用,将在3.xx中删除。请问是不是真的,为什么,如果是,怎么替换(举例)?非常感谢。 最佳答案 documentation3.2中没有提到应该删除str类型的replace方法。我也看不出为什么有人应该这样做。删除的是string中的replace函数模块。一个例子:"bla".replace("a","b")调用str类型的replace方法。string.replace("bla","a","b")调用字符串模块的替换函数。也许这就是您的同事所混淆的。使用字符串模块函数

python - IPython 笔记本 - ShimWarning : The `IPython.kernel` package has been deprecated

我在将一些包导入IPython-Notebook时收到以下消息:%matplotlibnotebookimportnumpyasnpimportmatplotlibasmplimportmatplotlib.pyplotaspltfromscipy.integrateimportodeint//anaconda/lib/python3.4/site-packages/IPython/kernel/__init__.py:13:ShimWarning:The`IPython.kernel`packagehasbeendeprecated.Youshouldimportfromipyker

android - 将 Android Studio 更新到 1.3.0 版后,出现 "NDK integration is deprecated in the current plugin"错误

我已在3天前将我的AndroidStudio更新到版本1.3.0。在此之前我可以使用NDK,但现在我遇到了类似的错误,Error:(50,0)Error:NDKintegrationisdeprecatedinthecurrentplugin.Considertryingthenewexperimentalplugin.Fordetails,seehttp://tools.android.com/tech-docs/new-build-system/gradle-experimental.Set"android.useDeprecatedNdk=true"ingradle.proper

android - 将 Android Studio 更新到 1.3.0 版后,出现 "NDK integration is deprecated in the current plugin"错误

我已在3天前将我的AndroidStudio更新到版本1.3.0。在此之前我可以使用NDK,但现在我遇到了类似的错误,Error:(50,0)Error:NDKintegrationisdeprecatedinthecurrentplugin.Considertryingthenewexperimentalplugin.Fordetails,seehttp://tools.android.com/tech-docs/new-build-system/gradle-experimental.Set"android.useDeprecatedNdk=true"ingradle.proper

html - 属性状态 : Deprecated or Obsolete?

我是HTML5的新手,我有问题要在各种W3HTML标准化文档中找出来获取属性的状态。例如,bgcolor的属性自HTML4.01起不应再使用元素。它已被弃用。(参见:http://www.w3.org/TR/html4/present/graphics.html#h-15.1.1)。但是它在HTML5中的地位如何?在HTML标记规范中,该属性被标记为过时(参见:http://www.w3.org/TR/html-markup/body.html)。这是否意味着该属性在HTML5中不再存在?考虑编写一个符合标准的客户端,我应该引用文档中的哪个引用来对属性进行精确和定义的处理?就因为它过时

Java(102):ES7.14,RestHighLevelClient创建索引时报错 create is deprecated

一、Maven引用org.elasticsearch.clientelasticsearch-rest-high-level-client7.14.0二、遇到问题:ES7.14,RestHighLevelClient创建索引时报错create isdeprecated'create(org.elasticsearch.action.admin.indices.create.CreateIndexRequest,org.elasticsearch.client.RequestOptions)'isdeprecated  出现原因 :这是因为在使用create方法时,会有两个选择,其中一个已经过时

iphone - 打开 + UIDocumentInteractionController : how to filter options in SDK iOS 6 (canPerformActions is deprecated)

自从发布新的SDK(iOS6)以来,UIDocumentInteractionControllerDelegate的委托(delegate)方法documentInteractionController:canPerformAction:已弃用。使用该方法,您可以防止出现print:和copy:等默认操作。该方法在当前版本的iOS6中被调用,但在未来的版本中将不会调用该方法并且我的应用程序将显示我不想支持的操作。我阅读了UIDocumentInteractionController及其委托(delegate)的可用文档,但我无法找到另一种方法来执行我在canPerformAction方

ios - UITabBarItem setFinishedSelectedImage : deprecated in iOS7

setFinishedSelectedImage:withFinishedUnselectedImage:在iOS7中被弃用。苹果recommends将image和selectedImage的setter与UIImageRenderingModeAlwaysOriginal一起使用。我找不到有关如何使用UIImageRenderingModeAlwaysOriginal的任何示例。所以问题很简单:如何在iOS7中为UITabBarItem设置图像? 最佳答案 如果您正在尝试在UITabBar上显示实际图像,请使用以下代码。[your

ios - 'sizeWithFont :constrainedToSize:lineBreakMode:'is deprecated:

在Xcode5上将项目从iOS5.0转换为iOS7/iOS6。下面的代码给出了编译时警告:'sizeWithFont:constrainedToSize:lineBreakMode:'已弃用:首先在ios7.0中弃用-使用-boundingRectWithSize:options:attribiutes:context-(CGFloat)tableView:(UITableView*)tableViewheightForRowAtIndexPath:(NSIndexPath*)indexPath{if(indexPath.section==0){self.lblHidden.frame