{"id":296716,"date":"2020-01-03T15:00:32","date_gmt":"2020-01-03T15:00:32","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=296716"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=296716","title":{"rendered":"\u0412\u0435\u0449\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b [\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e] \u043d\u0435 \u0437\u043d\u0430\u043b\u0438 \u043e Java"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/482364\/\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c!<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0440\u0430\u0437\u0431\u0430\u0432\u0438\u0442 \u043c\u043e\u0439 \u043f\u043e\u0442\u043e\u043a \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044f \u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0445 \u0432\u0435\u0449\u0430\u0445 \u0432 \u044f\u0432\u0435 \u0438 \u043e\u043a\u043e\u043b\u043e\u044f\u0432\u0435, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b <em>\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e<\/em> \u043d\u0435 \u0437\u043d\u0430\u043b\u0438. \u041e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0437 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u044f \u0441\u0430\u043c \u0443\u0437\u043d\u0430\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u0439\u0434\u0451\u0442 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u0430\u0440\u0443-\u0442\u0440\u043e\u0439\u043a\u0443 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h4 id=\"assert-mozhet-prinimat-2-argumenta\">assert \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c 2 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430<\/h4>\n<p>  <\/p>\n<p>\u041e\u0431\u044b\u0447\u043d\u043e <code>assert<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u0431\u0440\u043e\u0441\u0430\u0435\u0442 <code>AssertionError<\/code> \u0435\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0435 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442\u0441\u044f. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">assert list.isEmpty();<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">assert list.isEmpty() : list.toString();<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 (\u043a\u0441\u0442\u0430\u0442\u0438, \u043e\u043d\u043e \u043b\u0435\u043d\u0438\u0432\u043e\u0435) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <code>Object<\/code>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 <code>AssertionError<\/code> \u0438 \u043d\u0435\u0441\u0451\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435. \u0411\u043e\u043b\u0435\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043c. \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u044f\u0437\u044b\u043a\u0430: <a href=\"https:\/\/docs.oracle.com\/javase\/specs\/jls\/se13\/html\/jls-14.html#jls-14.10\" rel=\"nofollow\">https:\/\/docs.oracle.com\/javase\/specs\/jls\/se13\/html\/jls-14.html#jls-14.10<\/a><\/p>\n<p>  <\/p>\n<p>\u0417\u0430 \u0431\u0435\u0437 \u043c\u0430\u043b\u043e\u0433\u043e 6 \u0441 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043e\u0439 \u043b\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044f\u0432\u043e\u0439 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 <code>assert<\/code> \u044f \u0432\u0438\u0434\u0435\u043b \u043b\u0438\u0448\u044c \u043e\u0434\u043d\u0430\u0436\u0434\u044b.<\/p>\n<p>  <\/p>\n<h4 id=\"strictfp\">strictfp<\/h4>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043d\u0435 \u0440\u0443\u0433\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u2014 \u044d\u0442\u043e \u043c\u0430\u043b\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e. \u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u0438\u0442\u044c <a href=\"https:\/\/docs.oracle.com\/javase\/specs\/jls\/se10\/html\/jls-9.html#jls-9.1.1.2\" rel=\"nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u0433\u0443\u044e \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">public interface NonStrict {   float sum(float a, float b); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u043c\u043e\u0436\u043d\u043e \u043b\u0451\u0433\u043a\u0438\u043c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u0440\u0443\u043a\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 <\/p>\n<p>  <\/p>\n<pre><code class=\"java\">public strictfp interface Strict {   float sum(float a, float b); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u044d\u0442\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u0441\u044f \u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u0430\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">public interface Mixed {   float sum(float a, float b);    strictfp float strictSum(float a, float b); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Strictfp\" rel=\"nofollow\">\u0432\u0438\u043a\u0438-\u0441\u0442\u0430\u0442\u044c\u0435<\/a>. \u0412\u043a\u0440\u0430\u0442\u0446\u0435: \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u044d\u0442\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u0442.\u043a. \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 \u043c\u043e\u0433\u043b\u0430 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u043e\u0439.<\/p>\n<p>  <\/p>\n<h4 id=\"continue-mozhet-prinimat-argument\">continue \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442<\/h4>\n<p>  <\/p>\n<p>\u0423\u0437\u043d\u0430\u043b \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u043d\u0435\u0434\u0435\u043b\u0435. \u041e\u0431\u044b\u0447\u043d\u043e \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">for (Item item : items) {   if (item == null) {     continue;   }   use(item); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u044f\u0432\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0446\u0438\u043a\u043b\u0430 \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0445\u043e\u0434. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043a\u043e\u0434 \u0432\u044b\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">loop: for (Item item : items) {   if (item == null) {     continue loop;   }   use(item); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u0438\u0437 \u0446\u0438\u043a\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u0438 \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0446\u0438\u043a\u043b, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u0438\u043c\u0435\u0435\u0442\u0441\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">@Test void test() {   outer: for (int i = 0; i &lt; 20; i++) {     for (int j = 10; j &lt; 15; j++) {       if (j == 13) {         continue outer;       }     }   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0441\u0447\u0451\u0442\u0447\u0438\u043a <code>i<\/code> \u043f\u0440\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u0432 \u0442\u043e\u0447\u043a\u0443 <code>outer<\/code> \u043d\u0435 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u0446\u0438\u043a\u043b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c.<\/p>\n<p>  <\/p>\n<h4 id=\"pri-vyzove-vararg-metoda-bez-argumentov-vsyo-ravno-sozdayotsya-pustoy-massiv\">\u041f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 vararg-\u043c\u0435\u0442\u043e\u0434\u0430 \u0431\u0435\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u043e\u0439 \u043c\u0430\u0441\u0441\u0438\u0432<\/h4>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u044c \u043d\u0430 \u0432\u044b\u0437\u043e\u0432 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0438\u0437\u0432\u043d\u0435, \u0442\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u0441\u044f \u043d\u0435 \u043e \u0447\u0435\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">@Benchmark public Object invokeVararg() {   return vararg(); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u0432\u0435\u0434\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0432 \u043c\u0435\u0442\u043e\u0434, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438? \u0410 \u0432\u043e\u0442 \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0437\u043d\u0443\u0442\u0440\u0438, \u0442\u043e \u0432\u0441\u0451 \u043d\u0435 \u0442\u0430\u043a \u0440\u0430\u0434\u0443\u0436\u043d\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">public Object[] vararg(Object... args) {   return args; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043f\u044b\u0442 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u043e\u043f\u0430\u0441\u0435\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">Benchmark                                  Mode  Cnt     Score    Error   Units invokeVararg                               avgt   20     3,715 \u00b1  0,092   ns\/op invokeVararg:\u00b7gc.alloc.rate.norm           avgt   20    16,000 \u00b1  0,001    B\/op invokeVararg:\u00b7gc.count                     avgt   20   257,000           counts<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0437\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u043e\u0442 \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f <code>null<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">@Benchmark public Object invokeVarargWithNull() {   return vararg(null); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0431\u043e\u0440\u0449\u0438\u043a\u0443 \u043c\u0443\u0441\u043e\u0440\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0435\u0433\u0447\u0430\u0435\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">invokeVarargWithNull                       avgt   20     2,415 \u00b1  0,067   ns\/op invokeVarargWithNull:\u00b7gc.alloc.rate.norm   avgt   20    \u2248 10\u207b\u2075             B\/op invokeVarargWithNull:\u00b7gc.count             avgt   20       \u2248 0           counts<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u0434 \u0441 <code>null<\/code> \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 (\u0438 &#171;\u0418\u0434\u0435\u044f&#187;) \u0431\u0443\u0434\u0435\u0442 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0433\u043e\u0440\u044f\u0447\u0435\u043c \u043a\u043e\u0434\u0435 \u0438 \u0441\u043d\u0430\u0431\u0434\u0438\u0432 \u0435\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c.<\/p>\n<p>  <\/p>\n<h4 id=\"vyrazhenie-switch-case-ne-podderzhivaet-javalangclass\">\u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 switch-case \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 java.lang.Class<\/h4>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">String to(Class&lt;?&gt; clazz) {   switch (clazz) {     case String.class: return \"str\";     case Integer.class: return \"int\";     default: return \"obj\";   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043c\u0438\u0440\u0438\u0442\u0435\u0441\u044c \u0441 \u044d\u0442\u0438\u043c.<\/p>\n<p>  <\/p>\n<h4 id=\"tonkosti-prisvaivaniya-i-classisassignablefrom\">\u0422\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0438 Class.isAssignableFrom()<\/h4>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u043a\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">int a = 0; Integer b = 10;  a = b; \/\/ \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0443\u043c\u0430\u0439\u0442\u0435, \u043a\u0430\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u043d\u0451\u0442 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">boolean check(Integer b) {   return int.class.isAssignableFrom(b.getClass()); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <code>Class.isAssignableFrom()<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u0431\u043c\u0430\u043d\u0447\u0438\u0432\u043e\u0435 <em>\u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435<\/em>, \u0447\u0442\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <code>int.class.isAssignableFrom(b.getClass())<\/code> \u0432\u0435\u0440\u043d\u0451\u0442 <code>true<\/code>. \u041c\u044b \u0432\u0435\u0434\u044c \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0442\u0438\u043f\u0430 <code>int<\/code> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0442\u0438\u043f\u0430 <code>Integer<\/code>, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438?<\/p>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u043c\u0435\u0442\u043e\u0434 <code>check()<\/code> \u0432\u0435\u0440\u043d\u0451\u0442 <code>false<\/code>, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0447\u0451\u0442\u043a\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u0447\u0442\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">\/**  * Determines if the class or interface represented by this  * {@code Class} object is either the same as, or is a superclass or  * superinterface of, the class or interface represented by the specified  * {@code Class} parameter. It returns {@code true} if so;  * otherwise it returns {@code false}. If this {@code Class}              \/\/ &lt;---- !!!  * object represents a primitive type, this method returns  * {@code true} if the specified {@code Class} parameter is  * exactly this {@code Class} object; otherwise it returns  * {@code false}.  *  *\/ @HotSpotIntrinsicCandidate public native boolean isAssignableFrom(Class&lt;?&gt; cls);<\/code><\/pre>\n<p>  <\/p>\n<p>\u0425\u043e\u0442\u044c <code>int<\/code> \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u043c <code>Integer<\/code>-\u0430 (\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442) \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u2014 \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u044f\u0437\u044b\u043a\u0430, \u0430 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0437\u0430\u0431\u043b\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u043e\u0441\u043e\u0431\u0430\u044f \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430.<\/p>\n<p>  <\/p>\n<p>\u041c\u043e\u0440\u0430\u043b\u044c: \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u2014 <del>\u043a\u0440\u0435\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0434\u043e<\/del> \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e.<\/p>\n<p>  <\/p>\n<p>\u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u0440\u043e\u0438\u0441\u0442\u0435\u043a\u0430\u0435\u0442 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0444\u0430\u043a\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">assert int.class != Integer.class;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043b\u0430\u0441\u0441 <code>int.class<\/code> \u2014 \u044d\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 <code>Integer.TYPE<\/code>, \u0438 \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u043e\u043c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0432\u043e \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d \u044d\u0442\u043e\u0442 \u043a\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">Class&lt;?&gt; toClass() {   return int.class; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0436\u0443\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">toClass()Ljava\/lang\/Class;    L0     LINENUMBER 11 L0     GETSTATIC java\/lang\/Integer.TYPE : Ljava\/lang\/Class;     ARETURN<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 <code>java.lang.Integer<\/code> \u0443\u0432\u0438\u0434\u0438\u043c \u0442\u0430\u043c \u0432\u043e\u0442 \u044d\u0442\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">@SuppressWarnings(\"unchecked\") public static final Class&lt;Integer&gt; TYPE = (Class&lt;Integer&gt;) Class.getPrimitiveClass(\"int\");<\/code><\/pre>\n<p>  <\/p>\n<p>\u0413\u043b\u044f\u0434\u044f \u043d\u0430 \u0432\u044b\u0437\u043e\u0432 <code>Class.getPrimitiveClass(\"int\")<\/code> \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0441\u043e\u0431\u043b\u0430\u0437\u043d \u0432\u044b\u043f\u0438\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">@SuppressWarnings(\"unchecked\") public static final Class&lt;Integer&gt; TYPE = int.class;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0430\u043c\u043e\u0435 \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435, \u0447\u0442\u043e JDK \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 (\u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043e\u0432) \u0441\u043e\u0431\u0435\u0440\u0451\u0442\u0441\u044f, \u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f. \u041f\u0440\u0430\u0432\u0434\u0430 \u043f\u0440\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u043d\u0430 \u043d\u0435\u0434\u043e\u043b\u0433\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">java.lang.IllegalArgumentException: Component type is null     at jdk.internal.misc.Unsafe.allocateUninitializedArray(java.base\/Unsafe.java:1379)     at java.lang.StringConcatHelper.newArray(java.base\/StringConcatHelper.java:458)     at java.lang.StringConcatHelper.simpleConcat(java.base\/StringConcatHelper.java:423)     at java.lang.String.concat(java.base\/String.java:1968)     at jdk.internal.util.SystemProps.fillI18nProps(java.base\/SystemProps.java:165)     at jdk.internal.util.SystemProps.initProperties(java.base\/SystemProps.java:103)     at java.lang.System.initPhase1(java.base\/System.java:2002)<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u044b\u043b\u0435\u0437\u0430\u0435\u0442 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c :<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">class java.lang.StringConcatHelper {   @ForceInline  static byte[] newArray(long indexCoder) {   byte coder = (byte)(indexCoder &gt;&gt; 32);   int index = (int)indexCoder;   return (byte[]) UNSAFE.allocateUninitializedArray(byte.class, index &lt;&lt; coder); \/\/&lt;--  }  }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 <code>byte.class<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 null \u0438 \u043b\u043e\u043c\u0430\u0435\u0442 \u0430\u043d\u0441\u0435\u0439\u0444.<\/p>\n<p>  <\/p>\n<h4 id=\"spring-data-jpa-pozvolyaet-obyavit-chastichno-rabotosposobnyy-repozitoriy\">Spring Data JPA \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/h4>\n<p>  <\/p>\n<p>\u0417\u0430\u0432\u0435\u0440\u0448\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043a\u0443\u0440\u044c\u0451\u0437\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0435\u0439 \u043d\u0430 \u0441\u0442\u044b\u043a\u0435 \u0421\u043f\u0440\u0438\u043d\u0433 \u0414\u0430\u0442\u044b \u0438 \u0425\u0438\u0431\u0435\u0440\u043d\u0435\u0439\u0442\u0430. \u0412\u0441\u043f\u043e\u043c\u043d\u0438\u043c, \u043a\u0430\u043a \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439, \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u043d\u0435\u043a\u0443\u044e \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">@Entity public class SimpleEntity {   @Id   private Integer id;    @Column   private String name; }  public interface SimpleRepository extends JpaRepository&lt;SimpleEntity, Integer&gt; { }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043f\u044b\u0442\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0421\u043f\u0440\u0438\u043d\u0433 \u0414\u0430\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0432\u0441\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0438 \u0441\u0440\u0430\u0437\u0443 \u0432\u0430\u043b\u0438\u0442 \u0432\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043a\u0440\u0438\u0432\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">public interface SimpleRepository extends JpaRepository&lt;SimpleEntity, Integer&gt; {   @Query(\"\u0441\u043b\u044b\u0448\u044c, \u043f\u0430\u0440\u0435\u043d\u044c, \u043c\u0435\u043b\u043e\u0447\u044c \u0435\u0441\u0442\u044c?\")   Optional&lt;SimpleEntity&gt; findLesserOfTwoEvils();  }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043d\u0430\u043c \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043b\u0435\u0432\u044b\u043c \u0442\u0438\u043f\u043e\u043c \u043a\u043b\u044e\u0447\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">public interface SimpleRepository extends JpaRepository&lt;SimpleEntity, Long&gt; { }<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u0442\u0441\u044f, \u043d\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u0442\u043e\u0434 <code>findAll()<\/code> \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 &#171;\u043d\u0430 \u0443\u0440\u0430&#187;. \u0410 \u0432\u043e\u0442 \u043c\u0435\u0442\u043e\u0434\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u044e\u0447 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u0443\u043f\u0430\u0434\u0443\u0442 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">IllegalArgumentException: Provided id of the wrong type for class SimpleEntity. Expected: class java.lang.Integer, got class java.lang.Long<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0441\u0451 \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0421\u043f\u0440\u0438\u043d\u0433 \u0414\u0430\u0442\u0430 <a href=\"https:\/\/jira.spring.io\/browse\/DATACMNS-757\" rel=\"nofollow\">\u043d\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442<\/a> \u043a\u043b\u0430\u0441\u0441\u044b \u043a\u043b\u044e\u0447\u0430 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0438 \u043a\u043b\u044e\u0447\u0430 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043a \u043d\u0435\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. \u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u043d\u0435 \u043e\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0436\u0438\u0437\u043d\u0438, \u0430 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0425\u0438\u0431\u0435\u0440\u043d\u0435\u0439\u0442\u0430 \u0432\u044b\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f \u043a\u043b\u044e\u0447\u0430 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445: <a href=\"https:\/\/hibernate.atlassian.net\/browse\/HHH-10690\" rel=\"nofollow\">https:\/\/hibernate.atlassian.net\/browse\/HHH-10690<\/a><\/p>\n<p>  <\/p>\n<p>\u0412 \u0436\u0438\u0437\u043d\u0438 \u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437: \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 (\u0442\u0440\u043e\u043b\u044c\u0444\u0435\u0439\u0441) \u0441\u0430\u043c\u043e\u0439 \u0421\u043f\u0440\u0438\u043d\u0433 \u0414\u0430\u0442\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 <code>org.springframework.data.jpa.repository.query.PartTreeJpaQueryIntegrationTests$UserRepository<\/code> \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d <code>Long<\/code>-\u043e\u043c, \u0430 \u0432 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 <code>User<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>Integer<\/code>. \u0418 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u043c\u043e\u0439 \u043e\u0431\u0437\u043e\u0440 \u0431\u044b\u043b \u0432\u0430\u043c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e \u0432\u0430\u0441 \u0441 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0432\u0448\u0438\u043c \u041d\u043e\u0432\u044b\u043c \u0433\u043e\u0434\u043e\u043c \u0438 \u0436\u0435\u043b\u0430\u044e \u043a\u043e\u043f\u0430\u0442\u044c \u044f\u0432\u0443 \u0433\u043b\u0443\u0431\u0436\u0435 \u0438 \u0448\u0438\u0440\u0435!<\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/482364\/\"> https:\/\/habr.com\/ru\/post\/482364\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/482364\/\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c!<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0440\u0430\u0437\u0431\u0430\u0432\u0438\u0442 \u043c\u043e\u0439 \u043f\u043e\u0442\u043e\u043a \u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044f \u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0445 \u0432\u0435\u0449\u0430\u0445 \u0432 \u044f\u0432\u0435 \u0438 \u043e\u043a\u043e\u043b\u043e\u044f\u0432\u0435, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b <em>\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e<\/em> \u043d\u0435 \u0437\u043d\u0430\u043b\u0438. \u041e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0437 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u044f \u0441\u0430\u043c \u0443\u0437\u043d\u0430\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u0439\u0434\u0451\u0442 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u0430\u0440\u0443-\u0442\u0440\u043e\u0439\u043a\u0443 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-296716","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296716"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296716\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}