[ 
https://issues.apache.org/jira/browse/FLINK-6901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16080483#comment-16080483
 ] 

ASF GitHub Bot commented on FLINK-6901:
---------------------------------------

Github user NicoK commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4112#discussion_r126451783
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyBufferPool.java
 ---
    @@ -61,7 +60,9 @@ public NettyBufferPool(int numberOfArenas) {
                checkArgument(numberOfArenas >= 1, "Number of arenas");
                this.numberOfArenas = numberOfArenas;
     
    -           if (!PlatformDependent.hasUnsafe()) {
    +           try {
    +                   Class.forName("sun.misc.Unsafe");
    +           } catch (ClassNotFoundException e) {
    --- End diff --
    
    After checking with @StefanRRichter, it seems this check is unnecessary 
anyway since `org.apache.flink.core.memory.MemoryUtils#UNSAFE` is getting the 
class if needed and if not existing, Flink should not start anyway.


> Flip checkstyle configuration files
> -----------------------------------
>
>                 Key: FLINK-6901
>                 URL: https://issues.apache.org/jira/browse/FLINK-6901
>             Project: Flink
>          Issue Type: Improvement
>          Components: Checkstyle
>    Affects Versions: 1.4.0
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>
> We currently have 2 checkstyle files, {{checkstyle.xml}} as the basic 
> version, and {{strict-checkstyle.xml}} as a heavily expanded version that is 
> applied to most existing modules (see FLINK-6698).
> [~greghogan] suggested to flip the checkstyle while reviewing this PR 
> https://github.com/apache/flink/pull/4086, given that the strict checkstyle 
> is supposed to subsume the existing checkstyle in the long-term.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to