<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Why I got warning about "Discourage access to CaseQuery/TaskQuery" when I use it in Java code?</title><link>https://answers.axonivy.com/questions/740/why-i-got-warning-about-discourage-access-to-casequery-taskquery-when-i-use-it-in-java-code</link><description>&lt;p&gt;Despite being one part of Ivy API but when I try to use CaseQuery/TaskQuery inside a Java class, the compiler yeilds warnings:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Discouraged access: The type CaseQuery
is not accessible due to restriction
on required library
C:\dev\ide\xpert.ivy.alag\4.3.20.44658\plugins\ch.ivyteam.ivy.workflow_4.3.20.44658.jar&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It's true that we can suppress those warnings by using &lt;code&gt;@SuppressWarnings("restriction")&lt;/code&gt; but I want to know the reason why they are restricted? Is there anyway we can remove it?&lt;/p&gt;
&lt;p&gt;P.s: I use Ivy v4.3.20&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/740/why-i-got-warning-about-discourage-access-to-casequery-taskquery-when-i-use-it-in-java-code" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 05 Jun 2014 10:17:42 -0400</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/740/why-i-got-warning-about-discourage-access-to-casequery-taskquery-when-i-use-it-in-java-code/748</link><description>&lt;p&gt;This is a bug. Is fixed in 5.1.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Thu, 05 Jun 2014 10:17:42 -0400</pubDate><guid>https://answers.axonivy.com/questions/740/why-i-got-warning-about-discourage-access-to-casequery-taskquery-when-i-use-it-in-java-code/748</guid></item></channel></rss>