summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlli Tietäväinen <ollit@vaadin.com>2017-05-19 13:17:42 +0300
committerHenri Sara <henri.sara@gmail.com>2017-05-19 13:17:42 +0300
commit61306d021655fcdbb0ee03dd6aecf27ab0023006 (patch)
tree39d178a8d56328e8691ffdc6dd6adcae3c5809d0
parent57d0b2fd4c87e3dfc64e33fc8a43e78c8394f31e (diff)
downloadvaadin-framework-61306d021655fcdbb0ee03dd6aecf27ab0023006.tar.gz
vaadin-framework-61306d021655fcdbb0ee03dd6aecf27ab0023006.zip
Remove warning for shortcuts on disabled connector (#9369)
Remove unnecessary warning on server log when using shortcut on disabled connector. Fixes #6951
-rw-r--r--server/src/main/java/com/vaadin/event/ConnectorActionManager.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/event/ConnectorActionManager.java b/server/src/main/java/com/vaadin/event/ConnectorActionManager.java
index 8bed286d24..4596fc4ad9 100644
--- a/server/src/main/java/com/vaadin/event/ConnectorActionManager.java
+++ b/server/src/main/java/com/vaadin/event/ConnectorActionManager.java
@@ -20,7 +20,6 @@ import java.util.logging.Logger;
import com.vaadin.event.Action.Container;
import com.vaadin.server.ClientConnector;
import com.vaadin.server.VariableOwner;
-import com.vaadin.server.communication.ServerRpcHandler;
import com.vaadin.ui.Component;
/**
@@ -72,8 +71,6 @@ public class ConnectorActionManager extends ActionManager {
@Override
public void handleAction(Action action, Object sender, Object target) {
if (!connector.isConnectorEnabled()) {
- getLogger().warning(ServerRpcHandler
- .getIgnoredDisabledError("action", connector));
return;
}
eight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* $Id$ */

package org.apache.fop.fo.expr;

import org.apache.fop.datatypes.Numeric;
import org.apache.fop.fo.properties.Property;

/**
 * Class for managing the "max" Number Function. See Sec. 5.10.1 in the XSL-FO
 * standard.
 */
public class MaxFunction extends FunctionBase {

    /**
     * @return 2 (the number of arguments required for the max function)
     */
    public int nbArgs() {
        return 2;
    }

    /**
     * Handle "numerics" if no proportional/percent parts
     * @param args array of arguments to be processed
     * @param pInfo PropertyInfo to be processed
     * @return the maximum of the two args elements passed
     * @throws PropertyException for invalid operands
     */
    public Property eval(Property[] args,
                         PropertyInfo pInfo) throws PropertyException {
        Numeric n1 = args[0].getNumeric();
        Numeric n2 = args[1].getNumeric();
        if (n1 == null || n2 == null) {
            throw new PropertyException("Non numeric operands to max function");
        }
        return (Property) NumericOp.max(n1, n2);
    }

}